summaryrefslogtreecommitdiffstats
path: root/apps/plugins/pacbox/pacbox.h
diff options
context:
space:
mode:
authorMichael Sevakis <jethead71@rockbox.org>2011-01-25 19:28:40 +0000
committerMichael Sevakis <jethead71@rockbox.org>2011-01-25 19:28:40 +0000
commitd796ab6f61a4a336c53d6689750aa0eca118bbfd (patch)
treeb53af2fab5ad342f19b137cfa7c8c86c06fec839 /apps/plugins/pacbox/pacbox.h
parent81682e723a9294eec17bc74757fed3cc61a082b0 (diff)
downloadrockbox-d796ab6f61a4a336c53d6689750aa0eca118bbfd.tar.gz
rockbox-d796ab6f61a4a336c53d6689750aa0eca118bbfd.tar.bz2
rockbox-d796ab6f61a4a336c53d6689750aa0eca118bbfd.zip
Pacbox: Fix assumption about LCD width of 128 implying the display needs vertical clipping. No more screen garbage on sa9200.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29138 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins/pacbox/pacbox.h')
-rw-r--r--apps/plugins/pacbox/pacbox.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/apps/plugins/pacbox/pacbox.h b/apps/plugins/pacbox/pacbox.h
index 273408875e..99d9e2ffee 100644
--- a/apps/plugins/pacbox/pacbox.h
+++ b/apps/plugins/pacbox/pacbox.h
@@ -293,7 +293,13 @@
#define YOFS ((LCD_HEIGHT-224/2)/2)
#elif (LCD_WIDTH >= 128)
#define XOFS ((LCD_WIDTH-224/2)/2)
+#if LCD_HEIGHT < 144
#define YCLIP ((288-2*LCD_HEIGHT)/2)
+#define YOFS 0
+#else
+#define YCLIP 0
+#define YOFS ((LCD_HEIGHT-288/2)/2)
+#endif
#endif
/* How many video frames (out of a possible 60) we display each second.