Rev 7935 | Rev 8439 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 7935 | Rev 7960 | ||
---|---|---|---|
Line 1... | Line 1... | ||
1 | void ParseAndPaint() |
1 | void ParseAndPaint() |
2 | { |
2 | { |
3 | //search.clear(); |
- | |
4 | list.count=0; |
3 | list.count=0; |
5 | selection.cancel(); |
4 | selection.cancel(); |
Line 6... | Line 5... | ||
6 | 5 | ||
Line 44... | Line 43... | ||
44 | } |
43 | } |
45 | 44 | ||
Line 46... | Line 45... | ||
46 | void PaintVisible() |
45 | void PaintVisible() |
47 | { |
46 | { |
48 | int i; |
47 | int i, ff; |
- | 48 | signed s1, s2; |
|
49 | dword ydraw, absolute_y; |
49 | dword ydraw, absolute_y; |
50 | dword line_bg; |
50 | dword line_bg; |
51 | bool swapped_selection = false; |
51 | bool swapped_selection = false; |
Line 52... | Line 52... | ||
52 | 52 | ||
Line 66... | Line 66... | ||
66 | DrawBuf.DrawBar(0, ydraw, list.w, list.item_h, line_bg); |
66 | DrawBuf.DrawBar(0, ydraw, list.w, list.item_h, line_bg); |
67 | 67 | ||
Line 68... | Line 68... | ||
68 | selection.draw(absolute_y); |
68 | selection.draw(absolute_y); |
Line -... | Line 69... | ||
- | 69 | ||
- | 70 | if (search.visible) for (ff=0; ff |
|
- | 71 | s1 = search.found.get(ff) - lines.get(absolute_y); |
|
- | 72 | s2 = search.found.get(ff) - lines.get(absolute_y+1); |
|
- | 73 | ||
- | 74 | if (s2 > 0) break; |
|
- | 75 | ||
- | 76 | if (s1 > 0) && (s2 < 0) { |
|
- | 77 | DrawBuf.DrawBar(search.found.get(ff) - lines.get(absolute_y) * list.font_w + 3, |
|
- | 78 | ydraw, strlen(#found_text) * list.font_w, list.item_h, theme.found); |
|
- | 79 | } |
|
- | 80 | } |
|
69 | 81 | ||
70 | if (absolute_y |
82 | if (absolute_y |
71 | lines.get(absolute_y), lines.len(absolute_y)); |
83 | lines.get(absolute_y), lines.len(absolute_y)); |
Line 72... | Line 84... | ||
72 | } |
84 | } |
Line 73... | Line 85... | ||
73 | 85 | ||
74 | PutPaletteImage(buf_data+8, DrawBuf.bufw, list.h, list.x, list.y, 32, 0); |
86 | PutPaletteImage(buf_data+8, DrawBuf.bufw, list.h, list.x, list.y, 32, 0); |
75 | - |