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/splitedit.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/splitedit.c')
| -rw-r--r-- | apps/plugins/splitedit.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/apps/plugins/splitedit.c b/apps/plugins/splitedit.c index 7dd6be0..ab4ce41 100644 --- a/apps/plugins/splitedit.c +++ b/apps/plugins/splitedit.c @@ -338,10 +338,10 @@ static void redraw_osci(void) { if (osci_buffer[x] > 0) { - rb->lcd_drawline + rb->lcd_vline ( OSCI_X + x, OSCI_Y + OSCI_HEIGHT - 1, - OSCI_X + x, OSCI_Y + OSCI_HEIGHT - osci_buffer[x] - 1 + OSCI_Y + OSCI_HEIGHT - osci_buffer[x] - 1 ); } } @@ -977,10 +977,10 @@ unsigned long splitedit_editor(struct mp3entry * mp3_to_split, int i; for (i = lastx +1; i <= x; i++) { - rb->lcd_drawline + rb->lcd_vline ( i, OSCI_Y + OSCI_HEIGHT - 1, - i, OSCI_Y + OSCI_HEIGHT - osci_buffer[i - OSCI_X]-1 + OSCI_Y + OSCI_HEIGHT - osci_buffer[i - OSCI_X]-1 ); } } @@ -1007,8 +1007,8 @@ unsigned long splitedit_editor(struct mp3entry * mp3_to_split, ); rb->lcd_set_drawmode(DRMODE_SOLID); } - rb->lcd_drawline(split_x -2, OSCI_Y, split_x + 2, OSCI_Y); - rb->lcd_drawline(split_x-1, OSCI_Y+1, split_x +1,OSCI_Y+1); + rb->lcd_hline(split_x -2, split_x + 2, OSCI_Y); + rb->lcd_hline(split_x-1, split_x +1,OSCI_Y+1); } /* make visible */ |