Rev 7437 | Rev 8954 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 7437 | Rev 7444 | ||
---|---|---|---|
Line 114... | Line 114... | ||
114 | dword NOTES::DrawLine(int line_n, draw_h) { |
114 | dword NOTES::DrawLine(int line_n, draw_h) { |
115 | dword |
115 | dword |
116 | COL_BOTTOM_LINE=0xE8EFF4, |
116 | COL_BOTTOM_LINE=0xE8EFF4, |
117 | COL_BG, |
117 | COL_BG, |
118 | cur_text; |
118 | cur_text; |
- | 119 | int drawy; |
|
119 | char line_text[4096]; |
120 | char line_text[4096]; |
120 | if (line_n<0) return; |
121 | if (line_n<0) return; |
121 | x = 1; |
122 | x = 1; |
122 | if (line_n==cur_y) COL_BG = COL_BG_ACTIVE; else COL_BG = COL_BG_INACTIVE; |
123 | if (line_n==cur_y) COL_BG = COL_BG_ACTIVE; else COL_BG = COL_BG_INACTIVE; |
123 | DrawBar(x, line_n*item_h+y, RED_LINE_X, draw_h-1, COL_BG_INACTIVE); |
124 | DrawBar(x, line_n*item_h+y, RED_LINE_X, draw_h-1, COL_BG_INACTIVE); |
Line 129... | Line 130... | ||
129 | { |
130 | { |
130 | COL_BOTTOM_LINE=COL_BG; |
131 | COL_BOTTOM_LINE=COL_BG; |
131 | } |
132 | } |
132 | else |
133 | else |
133 | { |
134 | { |
- | 135 | drawy = item_h*line_n+5+y; |
|
134 | DefineButton(RED_LINE_X-CHBOX/2+x, item_h*line_n+5+y, CHBOX-1,CHBOX-1, CHECKBOX_ID+line_n+BT_HIDE, 0); //checkbox |
136 | DefineButton(RED_LINE_X-CHBOX/2+x, drawy, CHBOX-1,CHBOX-1, CHECKBOX_ID+line_n+BT_HIDE, 0); //checkbox |
135 | _PutImage(RED_LINE_X-CHBOX/2+x, item_h*line_n+5+y, CHBOX,CHBOX, lines[line_n].state*CHBOX*CHBOX*3+#checkbox); |
137 | _PutImage(RED_LINE_X-CHBOX/2+x,drawy, CHBOX,CHBOX, lines[line_n].state*CHBOX*CHBOX*3+#checkbox); |
136 | if (cur_text) WriteText(x+RED_LINE_X+6, item_h*line_n+7+y, 0x80, lines[line_n].state*0x777777, cur_text); |
138 | if (cur_text) WriteText(x+RED_LINE_X+6, drawy+2, 0x80, lines[line_n].state*0x777777, cur_text); |
137 | if (lines[line_n].state == true) DrawBar(x+RED_LINE_X+6, item_h*line_n+11+y, strlen(cur_text)*6, 1, 0x444444); //strike |
139 | if (lines[line_n].state == true) DrawBar(x+RED_LINE_X+6, drawy+6, strlen(cur_text)*6, 1, 0x444444); //strike |
- | 140 | DrawBar(WIN_W,drawy,1,item_h,0xBBBBBB); //fast fix; proper fix is to restrict WriteText() char length |
|
138 | } |
141 | } |
139 | DrawBar(x, line_n*item_h+draw_h-1+y, w, 1, COL_BOTTOM_LINE); |
142 | DrawBar(x, line_n*item_h+draw_h-1+y, w, 1, COL_BOTTOM_LINE); |
140 | DrawBar(x+RED_LINE_X, line_n*item_h+y, 1, draw_h, COL_RED_LINE); |
143 | DrawBar(x+RED_LINE_X, line_n*item_h+y, 1, draw_h, COL_RED_LINE); |
141 | x = RED_LINE_X; |
144 | x = RED_LINE_X; |
142 | return cur_text; |
145 | return cur_text; |