Rev 7525 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 7525 | Rev 7771 | ||
---|---|---|---|
Line 3... | Line 3... | ||
3 | DRAW_BUF |
3 | DRAW_BUF |
4 | }; |
4 | }; |
Line 5... | Line 5... | ||
5 | 5 | ||
Line 6... | Line 6... | ||
6 | #define DRAW_PADDING 12 |
6 | #define DRAW_PADDING 12 |
7 | 7 | ||
8 | void Parcer(byte mode) |
8 | void Parse(byte mode) |
9 | { |
9 | { |
10 | dword bufoff, buflen; |
10 | dword bufoff, buflen; |
11 | byte ch; |
11 | byte ch; |
Line 49... | Line 49... | ||
49 | 49 | ||
50 | void PreparePage() |
50 | void PreparePage() |
51 | { |
51 | { |
52 | list.w = Form.cwidth-scroll.size_x-1; |
52 | list.w = Form.cwidth-scroll.size_x-1; |
53 | list.count=0; |
53 | list.count=0; |
Line 54... | Line 54... | ||
54 | Parcer(COUNT_BUF_HEIGHT); |
54 | Parse(COUNT_BUF_HEIGHT); |
55 | 55 | ||
56 | //draw text in buffer |
56 | //draw text in buffer |
57 | list.SetSizes(0, TOOLBAR_H, list.w, Form.cheight-TOOLBAR_H, kfont.size.pt+6); |
57 | list.SetSizes(0, TOOLBAR_H, list.w, Form.cheight-TOOLBAR_H, kfont.size.pt+6); |
58 | if (list.count < list.visible) list.count = list.visible; |
58 | if (list.count < list.visible) list.count = list.visible; |
59 | kfont.size.height = list.count+1*list.item_h; |
59 | kfont.size.height = list.count+1*list.item_h; |
Line 60... | Line 60... | ||
60 | kfont.raw_size = 0; |
60 | kfont.raw_size = 0; |
61 | Parcer(DRAW_BUF); |
61 | Parse(DRAW_BUF); |
62 | 62 | ||
63 | if (list.count > list.visible * 10) DrawPage(); |
63 | if (list.count > list.visible * 10) DrawPage(); |