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/calculator.c | |
| parent | b6213bbf9889134c17065dc257c3cc08c7478490 (diff) | |
| download | rockbox-fef82552e19efd2f2a7c5918c650bbf39bfd454d.zip rockbox-fef82552e19efd2f2a7c5918c650bbf39bfd454d.tar.gz rockbox-fef82552e19efd2f2a7c5918c650bbf39bfd454d.tar.bz2 rockbox-fef82552e19efd2f2a7c5918c650bbf39bfd454d.tar.xz | |
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/calculator.c')
| -rw-r--r-- | apps/plugins/calculator.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/apps/plugins/calculator.c b/apps/plugins/calculator.c index 1cb1ee9..979705f 100644 --- a/apps/plugins/calculator.c +++ b/apps/plugins/calculator.c @@ -502,13 +502,11 @@ void cal_initial (void) /* draw lines */ rb->lcd_drawrect(X_0_POS, Y_0_POS, LCD_WIDTH-1, LCD_HEIGHT); - rb->lcd_drawline(X_0_POS, Y_1_POS-1, X_5_POS, Y_1_POS-1); + rb->lcd_hline(X_0_POS, X_5_POS, Y_1_POS-1); for (i = 0; i < 5 ; i++) - rb->lcd_drawline(X_0_POS, Y_1_POS+i*REC_HEIGHT, - X_5_POS, Y_1_POS+i*REC_HEIGHT); + rb->lcd_hline(X_0_POS, X_5_POS, Y_1_POS+i*REC_HEIGHT); for (i = 0; i < 4 ; i++) - rb->lcd_drawline(X_1_POS+i*REC_WIDTH, Y_1_POS, - X_1_POS+i*REC_WIDTH, Y_6_POS); + rb->lcd_vline(X_1_POS+i*REC_WIDTH, Y_1_POS, Y_6_POS); #ifdef CALCULATOR_OPERATORS /* basic operators are available through separate button */ |