* changed scrollbars to always show last line as first after scrolling
(that means jumping n - 1 screen lines instead of n screen lines)
+2006-07-23
+ * changed scrollbars to always show last line as first after scrolling
+ (that means jumping n - 1 screen lines instead of n screen lines)
+
2006-07-22
* fixed level versions of EMC level loader (from V4 to V1, V2 and V3)
* fixed level time for EMC levels for V2 engine (V2 and V5 levels)
-#define COMPILE_DATE_STRING "[2006-07-23 01:12]"
+#define COMPILE_DATE_STRING "[2006-07-23 01:22]"
struct GadgetScrollbar *gs = &gi->scrollbar;
int old_item_position = gs->item_position;
+ int item_steps = gs->items_visible - 1;
+ int item_direction = (mpos < gpos + gi->scrollbar.position ? -1 : +1);
changed_position = FALSE;
- gs->item_position +=
- gs->items_visible * (mpos < gpos + gi->scrollbar.position ? -1 : +1);
+ gs->item_position += item_steps * item_direction;
if (gs->item_position < 0)
gs->item_position = 0;