From 09cb3c7843d1bfe24f8259a73441c6398d2c0339 Mon Sep 17 00:00:00 2001 From: Aidan MacDonald Date: Wed, 21 Sep 2022 16:13:38 +0100 Subject: lcd: Remove HAVE_VIEWPORT_CLIP This was only enabled for the mrobe500 and sansaconnect targets. Most targets are therefore running without this "safety" measure, and presumably we'd have noticed long ago if there was a problem. So in all likelihood this is just a bunch of dead code that we don't need to carry around. Change-Id: I7d27701a38b1c2a985ee73fa6f277ad215d8d385 --- firmware/drivers/lcd-color-common.c | 8 -------- 1 file changed, 8 deletions(-) (limited to 'firmware/drivers/lcd-color-common.c') 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) { if ( ((unsigned)x < (unsigned)lcd_current_viewport->width) && ((unsigned)y < (unsigned)lcd_current_viewport->height) -#if defined(HAVE_VIEWPORT_CLIP) - && ((unsigned)x < (unsigned)LCD_WIDTH) - && ((unsigned)y < (unsigned)LCD_HEIGHT) -#endif ) lcd_fastpixelfuncs[lcd_current_viewport->drawmode](FBADDR(lcd_current_viewport->x+x, lcd_current_viewport->y+y)); } @@ -281,10 +277,6 @@ void lcd_drawline(int x1, int y1, int x2, int y2) if ((x >= 0 && y >= 0) && (x < w_vp) && (y < h_vp) -#if defined(HAVE_VIEWPORT_CLIP) - && (x < LCD_WIDTH) - && (y < LCD_HEIGHT) -#endif ) pfunc(fbaddr( x + x_vp, y + y_vp)); -- cgit v1.2.3