summaryrefslogtreecommitdiff
path: root/firmware/drivers/lcd-color-common.c
diff options
context:
space:
mode:
authorAidan MacDonald <amachronic@protonmail.com>2022-09-21 16:13:38 +0100
committerAidan MacDonald <amachronic@protonmail.com>2022-09-27 14:13:15 +0100
commit09cb3c7843d1bfe24f8259a73441c6398d2c0339 (patch)
tree2eebb6c411b93e29661bf3287a8f0bb597032181 /firmware/drivers/lcd-color-common.c
parent24daa265985756122e0cb551c57af621ddee4b60 (diff)
downloadrockbox-09cb3c7843d1bfe24f8259a73441c6398d2c0339.tar.gz
rockbox-09cb3c7843d1bfe24f8259a73441c6398d2c0339.zip
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
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