diff options
author | Karl Kurbjun <kkurbjun@gmail.com> | 2007-06-25 04:26:23 +0000 |
---|---|---|
committer | Karl Kurbjun <kkurbjun@gmail.com> | 2007-06-25 04:26:23 +0000 |
commit | a28d74e71cacc947fcb7563f0f3ea8bba92bab0e (patch) | |
tree | ca7aee6baa1530ae19ff034a536045eb11348386 /apps/plugins/rockboy/lcd.c | |
parent | 3490acbfbd835c3125cb590fa86d39d3df6895f9 (diff) | |
download | rockbox-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.c | 6 |
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 | ||
900 | int SCALEWL IDATA_ATTR=1<<16; | 903 | int SCALEWL IDATA_ATTR=1<<16; |
901 | int SCALEWS IDATA_ATTR=1<<16; | 904 | int SCALEWS IDATA_ATTR=1<<16; |
902 | int SCALEHL IDATA_ATTR=1<<16; | 905 | int SCALEHL IDATA_ATTR=1<<16; |
903 | int SCALEHS IDATA_ATTR=1<<16; | 906 | int SCALEHS IDATA_ATTR=1<<16; |
904 | int swidth IDATA_ATTR=160; | 907 | int swidth IDATA_ATTR=160; |
905 | int sremain IDATA_ATTR=LCD_WIDTH-160; | 908 | int sremain IDATA_ATTR=LCD_WIDTH-160; |
909 | #endif | ||
906 | 910 | ||
907 | void setvidmode(void) | 911 | void 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 | ||
977 | void lcd_refreshline(void) | 983 | void lcd_refreshline(void) |