diff options
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) |