summaryrefslogtreecommitdiffstats
path: root/firmware/drivers/lcd-16bit-vert.c
diff options
context:
space:
mode:
authorThomas Martitz <kugel@rockbox.org>2012-03-20 22:39:48 +0100
committerThomas Martitz <kugel@rockbox.org>2012-03-20 22:42:31 +0100
commitbae247075868986910dd426909370f2230b9331d (patch)
tree34b5741fcd39638baad8cf9ae26e3457abd10d6d /firmware/drivers/lcd-16bit-vert.c
parent94139ac0bd3e1ca5d384ac8ac5ad2a915d633a82 (diff)
downloadrockbox-bae247075868986910dd426909370f2230b9331d.tar.gz
rockbox-bae247075868986910dd426909370f2230b9331d.tar.bz2
rockbox-bae247075868986910dd426909370f2230b9331d.zip
Refactor lcd_clear_viewport().
* Unify 16bit implementaitons (move to 16bit-common.c). * Add viewport clipping (within #ifdef HAVE_VIEWPORT_CLIP) like other lcd_* functions have. Change-Id: I4e96b2efdb94d2f7bc5bcdb710554117989579ec
Diffstat (limited to 'firmware/drivers/lcd-16bit-vert.c')
-rw-r--r--firmware/drivers/lcd-16bit-vert.c50
1 files changed, 0 insertions, 50 deletions
diff --git a/firmware/drivers/lcd-16bit-vert.c b/firmware/drivers/lcd-16bit-vert.c
index 6f59af9f70..2ebd6a366e 100644
--- a/firmware/drivers/lcd-16bit-vert.c
+++ b/firmware/drivers/lcd-16bit-vert.c
@@ -46,56 +46,6 @@
/*** drawing functions ***/
-/* Clear the current viewport */
-void lcd_clear_viewport(void)
-{
- fb_data *dst, *dst_end;
-
- dst = FBADDR(current_vp->x, current_vp->y);
- dst_end = dst + current_vp->width * LCD_HEIGHT;
-
- if (current_vp->drawmode & DRMODE_INVERSEVID)
- {
- do
- {
- memset16(dst, current_vp->fg_pattern, current_vp->height);
- dst += LCD_HEIGHT;
- }
- while (dst < dst_end);
- }
- else
- {
- if (!lcd_backdrop)
- {
- do
- {
- memset16(dst, current_vp->bg_pattern, current_vp->height);
- dst += LCD_HEIGHT;
- }
- while (dst < dst_end);
- }
- else
- {
- do
- {
- memcpy(dst, (void *)((long)dst + lcd_backdrop_offset),
- current_vp->height * sizeof(fb_data));
- dst += LCD_HEIGHT;
- }
- while (dst < dst_end);
- }
- }
-
- if (current_vp == &default_vp)
- {
- lcd_scroll_info.lines = 0;
- }
- else
- {
- lcd_scroll_stop(current_vp);
- }
-}
-
/* Draw a horizontal line (optimised) */
void lcd_hline(int x1, int x2, int y)
{