turn off doublebuf, makes some games (eg: SimFarm) go black

This commit is contained in:
dborth 2009-10-14 06:23:58 +00:00
parent 314c33eada
commit 48fb8600dd
2 changed files with 6 additions and 2 deletions

View File

@ -1074,7 +1074,11 @@ static void GUI_StartUp(Section * sec) {
}
}
}
#ifdef HW_RVL
sdl.desktop.doublebuf=false;
#else
sdl.desktop.doublebuf=section->Get_bool("fulldouble");
#endif
if (!sdl.desktop.full.width) {
#ifdef WIN32
sdl.desktop.full.width=(Bit16u)GetSystemMetrics(SM_CXSCREEN);

View File

@ -101,8 +101,8 @@ bool MenuRequested()
{
for(int i=0; i<4; i++)
{
if ((userInput[i].wpad.btns_h & WPAD_BUTTON_HOME) ||
(userInput[i].wpad.btns_h & WPAD_CLASSIC_BUTTON_HOME))
if ((userInput[i].wpad->btns_h & WPAD_BUTTON_HOME) ||
(userInput[i].wpad->btns_h & WPAD_CLASSIC_BUTTON_HOME))
{
return true;
}