Thu Oct 7 16:39:48 PDT 1999 Michael Jennings <mej@eterm.org>

raster pointed out that the "clicked" image for the scrollbar anchor
	wasn't working.  It is now. :-)


SVN revision: 707
This commit is contained in:
Michael Jennings 1999-10-07 20:08:55 +00:00
parent 83146208c7
commit fb94fcd0b6
2 changed files with 10 additions and 4 deletions

View File

@ -2543,3 +2543,9 @@ Thu Oct 7 16:12:38 PDT 1999 Michael Jennings <mej@eterm.org>
let me know and I'll add a parameter for those too.
-------------------------------------------------------------------------------
Thu Oct 7 16:39:48 PDT 1999 Michael Jennings <mej@eterm.org>
raster pointed out that the "clicked" image for the scrollbar anchor
wasn't working. It is now. :-)
-------------------------------------------------------------------------------

View File

@ -436,13 +436,13 @@ sb_handle_button_press(event_t * ev)
scrollbar_setDn();
}
} else {
if (scrollbar_anchor_is_pixmapped() && images[image_sa].current != images[image_sa].clicked) {
images[image_sa].current = images[image_sa].clicked;
render_simage(images[image_sa].current, scrollbar_get_anchor_win(), scrollbar_anchor_width(), scrollbar_anchor_height(), image_sa, 0);
}
switch (ev->xbutton.button) {
case Button2:
button_state.mouse_offset = scrollbar_anchor_height() / 2; /* Align to center */
if (scrollbar_anchor_is_pixmapped() && images[image_sa].current != images[image_sa].clicked) {
images[image_sa].current = images[image_sa].clicked;
render_simage(images[image_sa].current, scrollbar_get_anchor_win(), scrollbar_anchor_width(), scrollbar_anchor_height(), image_sa, 0);
}
if (scrollbar_is_above_anchor(ev->xany.window, ev->xbutton.y)
|| scrollbar_is_below_anchor(ev->xany.window, ev->xbutton.y)
|| scrollBar.type == SCROLLBAR_XTERM) {