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
|
@ -65,7 +65,6 @@ static int drawMode = DRAW_MODE_FILLED;
|
|||
void cleanup(void *parameter)
|
||||
{
|
||||
(void)parameter;
|
||||
|
||||
/* restore to default roll position.
|
||||
Looks funny if you forget to do this... */
|
||||
rb->lcd_roll(0);
|
||||
|
@ -91,13 +90,13 @@ enum plugin_status plugin_start(struct plugin_api* api, void* parameter)
|
|||
int lastLeft = 0;
|
||||
int lastRight = 0;
|
||||
int lasty = 0;
|
||||
|
||||
|
||||
bool exit = false;
|
||||
|
||||
TEST_PLUGIN_API(api);
|
||||
(void)parameter;
|
||||
rb = api;
|
||||
|
||||
|
||||
/* the main loop */
|
||||
while (!exit) {
|
||||
|
||||
|
@ -106,8 +105,10 @@ enum plugin_status plugin_start(struct plugin_api* api, void* parameter)
|
|||
right = rb->mas_codec_readreg(0xD) / (MAX_PEAK / (LCD_WIDTH / 2 - 2));
|
||||
|
||||
/* delete current line */
|
||||
rb->lcd_clearline(0, y, LCD_WIDTH-1, y);
|
||||
rb->lcd_set_drawmode(DRMODE_SOLID|DRMODE_INVERSEVID);
|
||||
rb->lcd_drawline(0, y, LCD_WIDTH-1, y);
|
||||
|
||||
rb->lcd_set_drawmode(DRMODE_SOLID);
|
||||
switch (drawMode) {
|
||||
case DRAW_MODE_FILLED:
|
||||
rb->lcd_drawline(LCD_WIDTH / 2 + 1 , y,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue