Rev 6803 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 6803 | Rev 6806 | ||
---|---|---|---|
Line 35... | Line 35... | ||
35 | list.count++; |
35 | list.count++; |
36 | } |
36 | } |
37 | if (mode==DRAW_BUF) { |
37 | if (mode==DRAW_BUF) { |
38 | EBX = bufoff-line_start; |
38 | EBX = bufoff-line_start; |
39 | strlcpy(#line, line_start, EBX); |
39 | strlcpy(#line, line_start, EBX); |
40 | label.WriteIntoBuffer(8,stroka_y,list.w,label.size.height, 0xFFFFFF, 0, label.size.pt, #line); |
40 | kfont.WriteIntoBuffer(8,stroka_y,list.w,kfont.size.height, 0xFFFFFF, 0, kfont.size.pt, #line); |
41 | stroka_y += list.item_h; |
41 | stroka_y += list.item_h; |
42 | line_start = bufoff; |
42 | line_start = bufoff; |
43 | line_length = 30; |
43 | line_length = 30; |
44 | } |
44 | } |
45 | } |
45 | } |
46 | } |
46 | } |
47 | if (mode==COUNT_BUF_HEIGHT) list.count+=2; |
47 | if (mode==COUNT_BUF_HEIGHT) list.count+=2; |
48 | if (mode==DRAW_BUF) label.WriteIntoBuffer(8,stroka_y,list.w,label.size.height, 0xFFFFFF, 0, label.size.pt, line_start); |
48 | if (mode==DRAW_BUF) kfont.WriteIntoBuffer(8,stroka_y,list.w,kfont.size.height, 0xFFFFFF, 0, kfont.size.pt, line_start); |
49 | } |
49 | } |
Line 50... | Line 50... | ||
50 | 50 | ||
51 | void PreparePage() |
51 | void PreparePage() |
52 | { |
52 | { |
53 | //get font chars width, need to increase performance |
53 | //get font chars width, need to increase performance |
54 | int i; |
54 | int i; |
55 | label.changeSIZE(); |
55 | kfont.changeSIZE(); |
Line 56... | Line 56... | ||
56 | for (i=0; i<256; i++) char_width[i] = label.symbol_size(i); |
56 | for (i=0; i<256; i++) char_width[i] = kfont.symbol_size(i); |
57 | 57 | ||
58 | //get font buffer height |
58 | //get font buffer height |
59 | list.w = Form.cwidth-scroll.size_x-1; |
59 | list.w = Form.cwidth-scroll.size_x-1; |
Line 60... | Line 60... | ||
60 | list.count=0; |
60 | list.count=0; |
61 | Parcer(COUNT_BUF_HEIGHT); |
61 | Parcer(COUNT_BUF_HEIGHT); |
62 | 62 | ||
63 | //draw text in buffer |
63 | //draw text in buffer |
64 | list.SetSizes(0, TOOLBAR_H, list.w, Form.cheight-TOOLBAR_H, label.size.pt+3); |
64 | list.SetSizes(0, TOOLBAR_H, list.w, Form.cheight-TOOLBAR_H, kfont.size.pt+4); |
65 | if (list.count < list.visible) list.count = list.visible; |
65 | if (list.count < list.visible) list.count = list.visible; |
Line 66... | Line 66... | ||
66 | label.size.height = list.count+1*list.item_h; |
66 | kfont.size.height = list.count+1*list.item_h; |
67 | label.raw_size = 0; |
67 | kfont.raw_size = 0; |
68 | Parcer(DRAW_BUF); |
68 | Parcer(DRAW_BUF); |
69 | 69 |