summaryrefslogtreecommitdiff
path: root/apps/plugins/rockboy/lcd.c
diff options
context:
space:
mode:
authorKarl Kurbjun <kkurbjun@gmail.com>2007-06-25 04:26:23 +0000
committerKarl Kurbjun <kkurbjun@gmail.com>2007-06-25 04:26:23 +0000
commita28d74e71cacc947fcb7563f0f3ea8bba92bab0e (patch)
treeca7aee6baa1530ae19ff034a536045eb11348386 /apps/plugins/rockboy/lcd.c
parent3490acbfbd835c3125cb590fa86d39d3df6895f9 (diff)
downloadrockbox-a28d74e71cacc947fcb7563f0f3ea8bba92bab0e.tar.gz
rockbox-a28d74e71cacc947fcb7563f0f3ea8bba92bab0e.zip
Fix rockboy for the H100's. Thanks for fixing the HW codec players Peter
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13708 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins/rockboy/lcd.c')
-rw-r--r--apps/plugins/rockboy/lcd.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/apps/plugins/rockboy/lcd.c b/apps/plugins/rockboy/lcd.c
index bf44ccf136..494160dc85 100644
--- a/apps/plugins/rockboy/lcd.c
+++ b/apps/plugins/rockboy/lcd.c
@@ -876,6 +876,7 @@ void lcd_begin(void)
876 876
877 set_pal(); 877 set_pal();
878 878
879#ifdef HAVE_LCD_COLOR
879 if(options.rotate) 880 if(options.rotate)
880 { 881 {
881 if(options.fullscreen == 0) 882 if(options.fullscreen == 0)
@@ -894,18 +895,22 @@ void lcd_begin(void)
894 else 895 else
895 vdest=fb.ptr+S1; 896 vdest=fb.ptr+S1;
896 } 897 }
898#endif
897 WY = R_WY; 899 WY = R_WY;
898} 900}
899 901
902#ifdef HAVE_LCD_COLOR
900int SCALEWL IDATA_ATTR=1<<16; 903int SCALEWL IDATA_ATTR=1<<16;
901int SCALEWS IDATA_ATTR=1<<16; 904int SCALEWS IDATA_ATTR=1<<16;
902int SCALEHL IDATA_ATTR=1<<16; 905int SCALEHL IDATA_ATTR=1<<16;
903int SCALEHS IDATA_ATTR=1<<16; 906int SCALEHS IDATA_ATTR=1<<16;
904int swidth IDATA_ATTR=160; 907int swidth IDATA_ATTR=160;
905int sremain IDATA_ATTR=LCD_WIDTH-160; 908int sremain IDATA_ATTR=LCD_WIDTH-160;
909#endif
906 910
907void setvidmode(void) 911void setvidmode(void)
908{ 912{
913#ifdef HAVE_LCD_COLOR
909 switch(options.fullscreen) 914 switch(options.fullscreen)
910 { 915 {
911 case 0: 916 case 0:
@@ -972,6 +977,7 @@ void setvidmode(void)
972 sremain=-(((160*SCALEWL)>>16)*LCD_WIDTH+1); 977 sremain=-(((160*SCALEWL)>>16)*LCD_WIDTH+1);
973 else 978 else
974 sremain=LCD_WIDTH-swidth; 979 sremain=LCD_WIDTH-swidth;
980#endif
975} 981}
976 982
977void lcd_refreshline(void) 983void lcd_refreshline(void)