12,7 → 12,6 |
int x, y, w, h, line_h, text_y; |
dword font_w, font_h, font_type; |
int count, visible, first, current, column_max; //visible = row_max |
int wheel_size; |
int active; |
void ClearList(); |
int MouseOver(int xx, yy); |
58,7 → 57,6 |
line_h = line_hh; |
text_y = line_h - font_h / 2; |
visible = h / line_h; |
wheel_size = 3; |
//if (visible > count) visible=count; |
} |
|
76,13 → 74,13 |
if (scroll_state == 65535) |
{ |
if (first == 0) return 0; |
if (first > wheel_size+1) first -= wheel_size; else first=0; |
if (first > 3) first -= 2; else first=0; |
return 1; |
} |
if (scroll_state == 1) |
{ |
if (visible + first == count) return 0; |
if (visible+first+wheel_size+1 > count) first = count - visible; else first+=wheel_size; |
if (visible+first+3 > count) first = count - visible; else first+=2; |
return 1; |
} |
return 0; |