Rev 5781 | Rev 5825 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 5781 | Rev 5784 | ||
---|---|---|---|
Line 57... | Line 57... | ||
57 | h = hh; |
57 | h = hh; |
58 | line_h = line_hh; |
58 | line_h = line_hh; |
59 | text_y = line_h - font_h / 2; |
59 | text_y = line_h - font_h / 2; |
60 | visible = h / line_h; |
60 | visible = h / line_h; |
61 | wheel_size = 3; |
61 | wheel_size = 3; |
62 | //if (visible > count) visible=count; |
62 | CheckDoesValuesOkey(); |
63 | } |
63 | } |
Line 64... | Line 64... | ||
64 | 64 | ||
65 | void llist::SetFont(dword font_ww, font_hh, font_tt) |
65 | void llist::SetFont(dword font_ww, font_hh, font_tt) |
66 | { |
66 | { |
Line 212... | Line 212... | ||
212 | return 1; |
212 | return 1; |
213 | } |
213 | } |
Line 214... | Line 214... | ||
214 | 214 | ||
215 | void llist::CheckDoesValuesOkey() |
215 | void llist::CheckDoesValuesOkey() |
216 | { |
- | |
217 | if (first < 0) first = 0; |
216 | { |
- | 217 | if (visible + first > count) first = count - visible; |
|
218 | if (visible + first > count) first = count - visible; |
218 | if (first < 0) first = 0; |
219 | if (current >= count) current = count - 1; |
219 | if (current >= count) current = count - 1; |
220 | if (current < 0) current = 0; |
220 | if (current < 0) current = 0; |
Line 221... | Line 221... | ||
221 | } |
221 | } |