diff options
author | Jens Arnold <amiconn@rockbox.org> | 2008-04-12 09:51:16 +0000 |
---|---|---|
committer | Jens Arnold <amiconn@rockbox.org> | 2008-04-12 09:51:16 +0000 |
commit | fef82552e19efd2f2a7c5918c650bbf39bfd454d (patch) | |
tree | 2f5676473bfc91b565b5825e053bacc93f8ad607 /apps/plugins/vu_meter.c | |
parent | b6213bbf9889134c17065dc257c3cc08c7478490 (diff) |
Optimise some more line drawing calls.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17083 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins/vu_meter.c')
-rw-r--r-- | apps/plugins/vu_meter.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/apps/plugins/vu_meter.c b/apps/plugins/vu_meter.c index f71118268e..5a893d7407 100644 --- a/apps/plugins/vu_meter.c +++ b/apps/plugins/vu_meter.c @@ -561,8 +561,8 @@ void analog_meter(void) { rb->lcd_putsxy(half_width+quarter_width-12, 12, "Right"); /* Line above/below the Left/Right text */ - rb->lcd_drawline(0,9,LCD_WIDTH-1,9); - rb->lcd_drawline(0,21,LCD_WIDTH-1,21); + rb->lcd_hline(0,LCD_WIDTH-1,9); + rb->lcd_hline(0,LCD_WIDTH-1,21); for(i=0; i<half_width; i++) { rb->lcd_drawpixel(i, (y_values[i])-2); @@ -613,18 +613,18 @@ void digital_meter(void) { draw_digital_minimeters(); /* Lines above/below where the LEDS are */ - rb->lcd_drawline(0,12,LCD_WIDTH-1,12); - rb->lcd_drawline(0,half_height-12,LCD_WIDTH-1,half_height-12); + rb->lcd_hline(0,LCD_WIDTH-1,12); + rb->lcd_hline(0,LCD_WIDTH-1,half_height-12); - rb->lcd_drawline(0,half_height+18,LCD_WIDTH-1,half_height+18); - rb->lcd_drawline(0,LCD_HEIGHT-6,LCD_WIDTH-1,LCD_HEIGHT-6); + rb->lcd_hline(0,LCD_WIDTH-1,half_height+18); + rb->lcd_hline(0,LCD_WIDTH-1,LCD_HEIGHT-6); /* Show Left/Right */ rb->lcd_putsxy(2, half_height-8, "Left"); rb->lcd_putsxy(2, half_height+8, "Right"); /* Line in the middle */ - rb->lcd_drawline(0,half_height+3,LCD_WIDTH-1,half_height+3); + rb->lcd_hline(0,LCD_WIDTH-1,half_height+3); } enum plugin_status plugin_start(struct plugin_api* api, void* parameter) { |