summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKarl Kurbjun <kkurbjun@gmail.com>2006-06-19 02:44:50 +0000
committerKarl Kurbjun <kkurbjun@gmail.com>2006-06-19 02:44:50 +0000
commit0b4c6671dbad7fcfc146781291756e2180feb352 (patch)
tree0c8d9f160b081db096b8f9c24b896d651ca48865
parentb0ca08b33c0229f0a9ac5c79861c5566701d0b63 (diff)
downloadrockbox-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.c1
-rw-r--r--apps/plugins/rockboy/lcd.c13
-rw-r--r--apps/plugins/rockboy/menu.c2
-rw-r--r--apps/plugins/rockboy/rockboy.c10
-rw-r--r--apps/plugins/rockboy/rockmacros.h1
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
922int SCALEWL IDATA_ATTR=DY; 922int SCALEWL IDATA_ATTR=1<<16;
923int SCALEWS IDATA_ATTR=DYI; 923int SCALEWS IDATA_ATTR=1<<16;
924int SCALEHL IDATA_ATTR=DY; 924int SCALEHL IDATA_ATTR=1<<16;
925int SCALEHS IDATA_ATTR=DYI; 925int SCALEHS IDATA_ATTR=1<<16;
926int swidth IDATA_ATTR=(160*DY)>>16; 926int swidth IDATA_ATTR=160;
927int sremain IDATA_ATTR=LCD_WIDTH-((160*DY)>>16); 927int sremain IDATA_ATTR=LCD_WIDTH-160;
928 928
929void setvidmode(int mode) 929void 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
973char frameout[30]; 972char frameout[30];
974void lcd_refreshline(void) 973void 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
28void setvidmode(int);
29
30/* load/save state function declarations */ 28/* load/save state function declarations */
31static void do_opt_menu(void); 29static void do_opt_menu(void);
32static void do_slot_menu(bool is_load); 30static 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
50struct options options IBSS_ATTR; 50struct options options;
51 51
52void *audio_bufferbase; 52void *audio_bufferbase;
53void *audio_bufferpointer; 53void *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
81void setvidmode(int);
82
83void setoptions (void) 81void 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
157void savesettings(void) 153void 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);
45int do_user_menu(void); 45int do_user_menu(void);
46void loadstate(int fd); 46void loadstate(int fd);
47void savestate(int fd); 47void savestate(int fd);
48void 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 */