summaryrefslogtreecommitdiff
path: root/firmware/drivers/lcd-bitmap-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-bitmap-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-bitmap-common.c')
-rw-r--r--firmware/drivers/lcd-bitmap-common.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/firmware/drivers/lcd-bitmap-common.c b/firmware/drivers/lcd-bitmap-common.c
index c85d16cb70..24b302b6d4 100644
--- a/firmware/drivers/lcd-bitmap-common.c
+++ b/firmware/drivers/lcd-bitmap-common.c
@@ -139,11 +139,7 @@ struct viewport* LCDFN(set_viewport_ex)(struct viewport* vp, int flags)
139 || vp->x + vp->width > LCDM(WIDTH) 139 || vp->x + vp->width > LCDM(WIDTH)
140 || vp->y + vp->height > LCDM(HEIGHT)) 140 || vp->y + vp->height > LCDM(HEIGHT))
141 { 141 {
142#if !defined(HAVE_VIEWPORT_CLIP)
143 DEBUGF("ERROR: " 142 DEBUGF("ERROR: "
144#else
145 DEBUGF("NOTE: "
146#endif
147 "set_viewport out of bounds: x: %d y: %d width: %d height:%d\n", 143 "set_viewport out of bounds: x: %d y: %d width: %d height:%d\n",
148 vp->x, vp->y, vp->width, vp->height); 144 vp->x, vp->y, vp->width, vp->height);
149 } 145 }