This commit is contained in:
dborth 2009-10-06 19:57:29 +00:00
parent da58b6b3c0
commit c8f6ee1d87

View File

@ -250,46 +250,42 @@ UpdateGUI (void *arg)
while(1) while(1)
{ {
if(guiHalt) if(guiHalt)
{
LWP_SuspendThread(guithread); LWP_SuspendThread(guithread);
}
else mainWindow->Draw();
#ifdef HW_RVL
for(i=3; i >= 0; i--) // so that player 1's cursor appears on top!
{ {
mainWindow->Draw(); if(userInput[i].wpad.ir.valid)
Menu_DrawImg(userInput[i].wpad.ir.x-48, userInput[i].wpad.ir.y-48,
96, 96, pointer[i]->GetImage(), userInput[i].wpad.ir.angle, 1, 1, 255);
DoRumble(i);
}
#endif
#ifdef HW_RVL Menu_Render();
for(i=3; i >= 0; i--) // so that player 1's cursor appears on top!
for(i=3; i >= 0; i--)
mainWindow->Update(&userInput[i]);
#ifdef HW_RVL
if(updateFound)
{
updateFound = false;
LWP_CreateThread (&updatethread, EmulatorUpdate, NULL, NULL, 0, 70);
}
#endif
if(ExitRequested || ShutdownRequested)
{
for(i = 0; i < 255; i += 15)
{ {
if(userInput[i].wpad.ir.valid) mainWindow->Draw();
Menu_DrawImg(userInput[i].wpad.ir.x-48, userInput[i].wpad.ir.y-48, Menu_DrawRectangle(0,0,screenwidth,screenheight,(GXColor){0, 0, 0, i},1);
96, 96, pointer[i]->GetImage(), userInput[i].wpad.ir.angle, 1, 1, 255); Menu_Render();
DoRumble(i);
}
#endif
Menu_Render();
for(i=3; i >= 0; i--)
mainWindow->Update(&userInput[i]);
#ifdef HW_RVL
if(updateFound)
{
updateFound = false;
LWP_CreateThread (&updatethread, EmulatorUpdate, NULL, NULL, 0, 70);
}
#endif
if(ExitRequested || ShutdownRequested)
{
for(i = 0; i < 255; i += 15)
{
mainWindow->Draw();
Menu_DrawRectangle(0,0,screenwidth,screenheight,(GXColor){0, 0, 0, i},1);
Menu_Render();
}
ExitApp();
} }
ExitApp();
} }
usleep(THREAD_SLEEP); usleep(THREAD_SLEEP);
} }