diff options
author | Karl Kurbjun <kkurbjun@gmail.com> | 2006-06-19 02:44:50 +0000 |
---|---|---|
committer | Karl Kurbjun <kkurbjun@gmail.com> | 2006-06-19 02:44:50 +0000 |
commit | 0b4c6671dbad7fcfc146781291756e2180feb352 (patch) | |
tree | 0c8d9f160b081db096b8f9c24b896d651ca48865 | |
parent | b0ca08b33c0229f0a9ac5c79861c5566701d0b63 (diff) | |
download | rockbox-0b4c6671dbad7fcfc146781291756e2180feb352.tar.gz rockbox-0b4c6671dbad7fcfc146781291756e2180feb352.zip |
Fix the scaling not being initialized properly.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10139 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r-- | apps/plugins/rockboy/emu.c | 1 | ||||
-rw-r--r-- | apps/plugins/rockboy/lcd.c | 13 | ||||
-rw-r--r-- | apps/plugins/rockboy/menu.c | 2 | ||||
-rw-r--r-- | apps/plugins/rockboy/rockboy.c | 10 | ||||
-rw-r--r-- | apps/plugins/rockboy/rockmacros.h | 1 |
5 files changed, 11 insertions, 16 deletions
diff --git a/apps/plugins/rockboy/emu.c b/apps/plugins/rockboy/emu.c index f639a62772..8ee925cd02 100644 --- a/apps/plugins/rockboy/emu.c +++ b/apps/plugins/rockboy/emu.c | |||
@@ -51,6 +51,7 @@ void emu_run(void) | |||
51 | int framesin=0,frames=0,timeten=*rb->current_tick, timehun=*rb->current_tick; | 51 | int framesin=0,frames=0,timeten=*rb->current_tick, timehun=*rb->current_tick; |
52 | // int delay; | 52 | // int delay; |
53 | 53 | ||
54 | setvidmode(options.fullscreen); | ||
54 | vid_begin(); | 55 | vid_begin(); |
55 | lcd_begin(); | 56 | lcd_begin(); |
56 | #ifdef HAVE_ADJUSTABLE_CPU_FREQ | 57 | #ifdef HAVE_ADJUSTABLE_CPU_FREQ |
diff --git a/apps/plugins/rockboy/lcd.c b/apps/plugins/rockboy/lcd.c index f98b4f6935..1b285ec1b9 100644 --- a/apps/plugins/rockboy/lcd.c +++ b/apps/plugins/rockboy/lcd.c | |||
@@ -919,12 +919,12 @@ void lcd_begin(void) | |||
919 | WY = R_WY; | 919 | WY = R_WY; |
920 | } | 920 | } |
921 | 921 | ||
922 | int SCALEWL IDATA_ATTR=DY; | 922 | int SCALEWL IDATA_ATTR=1<<16; |
923 | int SCALEWS IDATA_ATTR=DYI; | 923 | int SCALEWS IDATA_ATTR=1<<16; |
924 | int SCALEHL IDATA_ATTR=DY; | 924 | int SCALEHL IDATA_ATTR=1<<16; |
925 | int SCALEHS IDATA_ATTR=DYI; | 925 | int SCALEHS IDATA_ATTR=1<<16; |
926 | int swidth IDATA_ATTR=(160*DY)>>16; | 926 | int swidth IDATA_ATTR=160; |
927 | int sremain IDATA_ATTR=LCD_WIDTH-((160*DY)>>16); | 927 | int sremain IDATA_ATTR=LCD_WIDTH-160; |
928 | 928 | ||
929 | void setvidmode(int mode) | 929 | void setvidmode(int mode) |
930 | { | 930 | { |
@@ -969,7 +969,6 @@ void setvidmode(int mode) | |||
969 | sremain=LCD_WIDTH-swidth; | 969 | sremain=LCD_WIDTH-swidth; |
970 | } | 970 | } |
971 | 971 | ||
972 | |||
973 | char frameout[30]; | 972 | char frameout[30]; |
974 | void lcd_refreshline(void) | 973 | void lcd_refreshline(void) |
975 | { | 974 | { |
diff --git a/apps/plugins/rockboy/menu.c b/apps/plugins/rockboy/menu.c index e27be48e9b..aa79b5db4b 100644 --- a/apps/plugins/rockboy/menu.c +++ b/apps/plugins/rockboy/menu.c | |||
@@ -25,8 +25,6 @@ | |||
25 | #define MENU_BUTTON_RIGHT BUTTON_RIGHT | 25 | #define MENU_BUTTON_RIGHT BUTTON_RIGHT |
26 | #endif | 26 | #endif |
27 | 27 | ||
28 | void setvidmode(int); | ||
29 | |||
30 | /* load/save state function declarations */ | 28 | /* load/save state function declarations */ |
31 | static void do_opt_menu(void); | 29 | static void do_opt_menu(void); |
32 | static void do_slot_menu(bool is_load); | 30 | static void do_slot_menu(bool is_load); |
diff --git a/apps/plugins/rockboy/rockboy.c b/apps/plugins/rockboy/rockboy.c index ccc05cef06..47af58c975 100644 --- a/apps/plugins/rockboy/rockboy.c +++ b/apps/plugins/rockboy/rockboy.c | |||
@@ -47,7 +47,7 @@ void die(char *message, ...) | |||
47 | errormsg=message; | 47 | errormsg=message; |
48 | } | 48 | } |
49 | 49 | ||
50 | struct options options IBSS_ATTR; | 50 | struct options options; |
51 | 51 | ||
52 | void *audio_bufferbase; | 52 | void *audio_bufferbase; |
53 | void *audio_bufferpointer; | 53 | void *audio_bufferpointer; |
@@ -78,8 +78,6 @@ void setmallocpos(void *pointer) | |||
78 | audio_buffer_free = audio_bufferpointer - audio_bufferbase; | 78 | audio_buffer_free = audio_bufferpointer - audio_bufferbase; |
79 | } | 79 | } |
80 | 80 | ||
81 | void setvidmode(int); | ||
82 | |||
83 | void setoptions (void) | 81 | void setoptions (void) |
84 | { | 82 | { |
85 | int fd; | 83 | int fd; |
@@ -149,9 +147,7 @@ void setoptions (void) | |||
149 | else | 147 | else |
150 | read(fd,&options, sizeof(options)); | 148 | read(fd,&options, sizeof(options)); |
151 | 149 | ||
152 | setvidmode(options.fullscreen); | 150 | close(fd); |
153 | |||
154 | close(fd); | ||
155 | } | 151 | } |
156 | 152 | ||
157 | void savesettings(void) | 153 | void savesettings(void) |
@@ -195,7 +191,7 @@ enum plugin_status plugin_start(struct plugin_api* api, void* parameter) | |||
195 | < audio_buffer_free) | 191 | < audio_buffer_free) |
196 | audio_buffer_free = plugin_start_addr - (unsigned char *)audio_bufferbase; | 192 | audio_buffer_free = plugin_start_addr - (unsigned char *)audio_bufferbase; |
197 | #endif | 193 | #endif |
198 | setoptions(); | 194 | setoptions(); |
199 | #ifdef USE_IRAM | 195 | #ifdef USE_IRAM |
200 | memcpy(iramstart, iramcopy, iramend-iramstart); | 196 | memcpy(iramstart, iramcopy, iramend-iramstart); |
201 | memset(iedata, 0, iend - iedata); | 197 | memset(iedata, 0, iend - iedata); |
diff --git a/apps/plugins/rockboy/rockmacros.h b/apps/plugins/rockboy/rockmacros.h index 5de98deef7..3d780a79ac 100644 --- a/apps/plugins/rockboy/rockmacros.h +++ b/apps/plugins/rockboy/rockmacros.h | |||
@@ -45,6 +45,7 @@ void ev_poll(void); | |||
45 | int do_user_menu(void); | 45 | int do_user_menu(void); |
46 | void loadstate(int fd); | 46 | void loadstate(int fd); |
47 | void savestate(int fd); | 47 | void savestate(int fd); |
48 | void setvidmode(int mode); | ||
48 | #define USER_MENU_QUIT -2 | 49 | #define USER_MENU_QUIT -2 |
49 | 50 | ||
50 | /* Disable ICODE for the ARMs */ | 51 | /* Disable ICODE for the ARMs */ |