summaryrefslogtreecommitdiff
path: root/firmware/drivers/lcd-color-common.c
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/drivers/lcd-color-common.c')
-rw-r--r--firmware/drivers/lcd-color-common.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/firmware/drivers/lcd-color-common.c b/firmware/drivers/lcd-color-common.c
index a867583d36..36144b574c 100644
--- a/firmware/drivers/lcd-color-common.c
+++ b/firmware/drivers/lcd-color-common.c
@@ -198,10 +198,6 @@ void lcd_drawpixel(int x, int y)
198{ 198{
199 if ( ((unsigned)x < (unsigned)lcd_current_viewport->width) 199 if ( ((unsigned)x < (unsigned)lcd_current_viewport->width)
200 && ((unsigned)y < (unsigned)lcd_current_viewport->height) 200 && ((unsigned)y < (unsigned)lcd_current_viewport->height)
201#if defined(HAVE_VIEWPORT_CLIP)
202 && ((unsigned)x < (unsigned)LCD_WIDTH)
203 && ((unsigned)y < (unsigned)LCD_HEIGHT)
204#endif
205 ) 201 )
206 lcd_fastpixelfuncs[lcd_current_viewport->drawmode](FBADDR(lcd_current_viewport->x+x, lcd_current_viewport->y+y)); 202 lcd_fastpixelfuncs[lcd_current_viewport->drawmode](FBADDR(lcd_current_viewport->x+x, lcd_current_viewport->y+y));
207} 203}
@@ -281,10 +277,6 @@ void lcd_drawline(int x1, int y1, int x2, int y2)
281 if ((x >= 0 && y >= 0) 277 if ((x >= 0 && y >= 0)
282 && (x < w_vp) 278 && (x < w_vp)
283 && (y < h_vp) 279 && (y < h_vp)
284#if defined(HAVE_VIEWPORT_CLIP)
285 && (x < LCD_WIDTH)
286 && (y < LCD_HEIGHT)
287#endif
288 ) 280 )
289 pfunc(fbaddr( x + x_vp, y + y_vp)); 281 pfunc(fbaddr( x + x_vp, y + y_vp));
290 282