This commit is contained in:
dborth 2009-02-20 09:32:44 +00:00
parent 0b7703a85f
commit f731a3fd88
2 changed files with 10 additions and 10 deletions

View File

@ -182,21 +182,22 @@ int main(int argc, char *argv[])
#endif
#ifdef HW_RVL
DI_Close();
DI_Init(); // first
#endif
int selectedMenu = -1;
InitDeviceThread();
InitGCVideo ();
ResetVideo_Menu (); // change to menu video mode
// Controllers
VIDEO_Init();
PAD_Init();
#ifdef HW_RVL
WPAD_Init();
#endif
InitGCVideo ();
ResetVideo_Menu (); // change to menu video mode
#ifdef HW_RVL
// read wiimote accelerometer and IR data
WPAD_SetDataFormat(WPAD_CHAN_ALL,WPAD_FMT_BTNS_ACC_IR);
WPAD_SetVRes(WPAD_CHAN_ALL,640,480);
@ -247,6 +248,8 @@ int main(int argc, char *argv[])
if(argc > 0 && argv[0] != NULL)
CreateAppPath(argv[0]);
int selectedMenu = -1;
// Load preferences
if(!LoadPrefs())
{

View File

@ -472,9 +472,6 @@ UpdatePadsCB ()
void
InitGCVideo ()
{
// init video
VIDEO_Init ();
// get default video mode
vmode = VIDEO_GetPreferredMode(NULL);