Skip to content

Commit

Permalink
No commit message
Browse files Browse the repository at this point in the history
  • Loading branch information
dborth committed Oct 6, 2009
1 parent da58b6b commit c8f6ee1
Showing 1 changed file with 28 additions and 32 deletions.
60 changes: 28 additions & 32 deletions source/ngc/menu.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -250,46 +250,42 @@ UpdateGUI (void *arg)
while(1)
{
if(guiHalt)
{
LWP_SuspendThread(guithread);
}
else
{
mainWindow->Draw();

#ifdef HW_RVL
for(i=3; i >= 0; i--) // so that player 1's cursor appears on top!
{
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
mainWindow->Draw();

#ifdef HW_RVL
for(i=3; i >= 0; i--) // so that player 1's cursor appears on top!
{
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

Menu_Render();
Menu_Render();

for(i=3; i >= 0; i--)
mainWindow->Update(&userInput[i]);
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
#ifdef HW_RVL
if(updateFound)
{
updateFound = false;
LWP_CreateThread (&updatethread, EmulatorUpdate, NULL, NULL, 0, 70);
}
#endif

if(ExitRequested || ShutdownRequested)
if(ExitRequested || ShutdownRequested)
{
for(i = 0; i < 255; i += 15)
{
for(i = 0; i < 255; i += 15)
{
mainWindow->Draw();
Menu_DrawRectangle(0,0,screenwidth,screenheight,(GXColor){0, 0, 0, i},1);
Menu_Render();
}
ExitApp();
mainWindow->Draw();
Menu_DrawRectangle(0,0,screenwidth,screenheight,(GXColor){0, 0, 0, i},1);
Menu_Render();
}
ExitApp();
}
usleep(THREAD_SLEEP);
}
Expand Down

0 comments on commit c8f6ee1

Please sign in to comment.