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
This commit is contained in:
Michael Sevakis 2011-01-25 19:28:40 +00:00
parent 81682e723a
commit d796ab6f61
2 changed files with 11 additions and 3 deletions

View file

@ -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.