summaryrefslogtreecommitdiff
path: root/firmware/drivers/lcd-1bit-vert.c
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/drivers/lcd-1bit-vert.c')
-rw-r--r--firmware/drivers/lcd-1bit-vert.c28
1 files changed, 0 insertions, 28 deletions
diff --git a/firmware/drivers/lcd-1bit-vert.c b/firmware/drivers/lcd-1bit-vert.c
index 66c785a3aa..accce026cd 100644
--- a/firmware/drivers/lcd-1bit-vert.c
+++ b/firmware/drivers/lcd-1bit-vert.c
@@ -206,34 +206,6 @@ void LCDFN(clear_display)(void)
206 LCDFN(scroll_info).lines = 0; 206 LCDFN(scroll_info).lines = 0;
207} 207}
208 208
209/* Clear the current viewport */
210void LCDFN(clear_viewport)(void)
211{
212 int oldmode;
213
214 if (CURRENT_VP == &default_vp &&
215 default_vp.buffer == &LCDFN(framebuffer_default))
216 {
217 LCDFN(clear_display)();
218 }
219 else
220 {
221 oldmode = CURRENT_VP->drawmode;
222
223 /* Invert the INVERSEVID bit and set basic mode to SOLID */
224 CURRENT_VP->drawmode = (~CURRENT_VP->drawmode & DRMODE_INVERSEVID) |
225 DRMODE_SOLID;
226
227 LCDFN(fillrect)(0, 0, CURRENT_VP->width, CURRENT_VP->height);
228
229 CURRENT_VP->drawmode = oldmode;
230
231 LCDFN(scroll_stop_viewport)(CURRENT_VP);
232 }
233
234 CURRENT_VP->flags &= ~(VP_FLAG_VP_SET_CLEAN);
235}
236
237/* Draw a horizontal line (optimised) */ 209/* Draw a horizontal line (optimised) */
238void LCDFN(hline)(int x1, int x2, int y) 210void LCDFN(hline)(int x1, int x2, int y)
239{ 211{