forked from len0rd/rockbox
First part of graphics api rework. Special functions, parameter handling, pixel functions, lines and filled primitives done for black & white core, main display.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6856 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
0e935bdf01
commit
04daef17a1
41 changed files with 1019 additions and 558 deletions
|
@ -154,7 +154,9 @@ static void draw_calendar(struct shown *shown)
|
|||
rb->lcd_putsxy(ws, (row * h) + 5 ,buffer);
|
||||
if (shown->mday == j)
|
||||
{
|
||||
rb->lcd_invertrect(ws, row*h+5, space, h);
|
||||
rb->lcd_set_drawmode(DRMODE_COMPLEMENT);
|
||||
rb->lcd_fillrect(ws, row*h+5, space, h);
|
||||
rb->lcd_set_drawmode(DRMODE_SOLID);
|
||||
shown->wday = pos;
|
||||
}
|
||||
ws += space;
|
||||
|
@ -520,7 +522,9 @@ static void show_lines(int selected, struct shown *shown)
|
|||
k++;
|
||||
i++;
|
||||
}
|
||||
rb->lcd_invertrect(0, (pos) * h, LCD_WIDTH, h);
|
||||
rb->lcd_set_drawmode(DRMODE_COMPLEMENT);
|
||||
rb->lcd_fillrect(0, (pos) * h, LCD_WIDTH, h);
|
||||
rb->lcd_set_drawmode(DRMODE_SOLID);
|
||||
}
|
||||
|
||||
static void update_memos_shown(struct shown *shown)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue