Subversion Repositories Kolibri OS

Compare Revisions

Regard whitespace Rev 8438 → Rev 8439

/programs/cmm/quark/data.h
106,7 → 106,7
char default_dir[] = "/rd/1";
od_filter filter2 = { 33, "TXT\0ASM\0HTM\0HTML\0C\0H\0C--\0H--\0CPP\0\0" };
 
DrawBufer DrawBuf;
CANVAS canvas;
 
dword cursor_pos=0;
 
/programs/cmm/quark/prepare_page.h
7,7 → 7,7
Parse();
 
list.visible = list.h / list.item_h;
DrawBuf.Init(list.x, list.y, list.w, list.visible+1*list.item_h);
canvas.Init(list.x, list.y, list.w, list.visible+1*list.item_h);
DrawPage();
}
 
64,7 → 64,7
line_bg = theme.bg;
 
if (selection.start_y < absolute_y) && (selection.end_y > absolute_y) line_bg = selection.color;
DrawBuf.DrawBar(0, ydraw, list.w, list.item_h, line_bg);
canvas.DrawBar(0, ydraw, list.w, list.item_h, line_bg);
 
selection.draw(absolute_y);
 
75,17 → 75,17
if (s2 > 0) break;
 
if (s1 > 0) && (s2 < 0) {
DrawBuf.DrawBar(search.found.get(ff) - lines.get(absolute_y) * list.font_w + 3,
canvas.DrawBar(search.found.get(ff) - lines.get(absolute_y) * list.font_w + 3,
ydraw, strlen(#found_text) * list.font_w, list.item_h, theme.found);
search_next = false;
}
}
 
if (absolute_y<list.count) DrawBuf.WriteText(3, ydraw+3, list.font_type, theme.text,
if (absolute_y<list.count) canvas.WriteText(3, ydraw+3, list.font_type, theme.text,
lines.get(absolute_y), lines.len(absolute_y));
}
 
PutPaletteImage(buf_data+8, DrawBuf.bufw, list.h, list.x, list.y, 32, 0);
PutPaletteImage(buf_data+8, canvas.bufw, list.h, list.x, list.y, 32, 0);
 
if (swapped_selection) selection.swap_start_end();
}
/programs/cmm/quark/selection.h
25,7 → 25,7
 
void SELECTION::draw_line(dword x,y,w)
{
DrawBuf.DrawBar(x, y - list.first * list.item_h, w, list.item_h, color);
canvas.DrawBar(x, y - list.first * list.item_h, w, list.item_h, color);
}
 
void SELECTION::draw(int i)
35,12 → 35,12
else if (start_y == i) draw_line(start_x * list.font_w+2, start_y, list.w -2- calc(start_x * list.font_w));
else if (end_y == i) draw_line(0, end_y, end_x * list.font_w+2);
//only for debug:
//DrawBuf.DrawBar(start_x * list.font_w + 2, start_y * list.item_h, 2, list.item_h, 0x00FF00);
//DrawBuf.DrawBar(end_x * list.font_w + 0, end_y * list.item_h, 2, list.item_h, 0xFF00FF);
//canvas.DrawBar(start_x * list.font_w + 2, start_y * list.item_h, 2, list.item_h, 0x00FF00);
//canvas.DrawBar(end_x * list.font_w + 0, end_y * list.item_h, 2, list.item_h, 0xFF00FF);
}
//DrawCursor
if (list.cur_y >= list.first) && (list.cur_y <= list.first+list.visible) {
DrawBuf.DrawBar(list.cur_x * list.font_w + 2, list.cur_y - list.first * list.item_h, 2, list.item_h, theme.cursor);
canvas.DrawBar(list.cur_x * list.font_w + 2, list.cur_y - list.first * list.item_h, 2, list.item_h, theme.cursor);
}
}