summaryrefslogtreecommitdiffstats
path: root/firmware/drivers/lcd-2bit-horz.c
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/drivers/lcd-2bit-horz.c')
-rw-r--r--firmware/drivers/lcd-2bit-horz.c27
1 files changed, 0 insertions, 27 deletions
diff --git a/firmware/drivers/lcd-2bit-horz.c b/firmware/drivers/lcd-2bit-horz.c
index 0ec9d2a6aa..b8ebaff7e1 100644
--- a/firmware/drivers/lcd-2bit-horz.c
+++ b/firmware/drivers/lcd-2bit-horz.c
@@ -348,33 +348,6 @@ void lcd_clear_display(void)
lcd_scroll_info.lines = 0;
}
-/* Clear the current viewport */
-void lcd_clear_viewport(void)
-{
- int lastmode;
-
- if (lcd_current_viewport == &default_vp &&
- default_vp.buffer == &lcd_framebuffer_default)
- {
- lcd_clear_display();
- }
- else
- {
- lastmode = lcd_current_viewport->drawmode;
-
- /* Invert the INVERSEVID bit and set basic mode to SOLID */
- lcd_current_viewport->drawmode = (~lastmode & DRMODE_INVERSEVID) |
- DRMODE_SOLID;
-
- lcd_fillrect(0, 0, lcd_current_viewport->width, lcd_current_viewport->height);
-
- lcd_current_viewport->drawmode = lastmode;
-
- lcd_scroll_stop_viewport(lcd_current_viewport);
- }
- lcd_current_viewport->flags &= ~(VP_FLAG_VP_SET_CLEAN);
-}
-
/* Draw a horizontal line (optimised) */
void lcd_hline(int x1, int x2, int y)
{