this fixes my pal problems. i dont know what problems adelikat is having
This commit is contained in:
parent
0a63a42df2
commit
3ada6d3015
|
@ -520,7 +520,11 @@ static void BlitScreenWindow(unsigned char *XBuf)
|
|||
ddrval=IDirectDrawSurface7_Blt(lpDDSPrimary, &drect,lpDDSBack,&srect,DDBLT_WAIT,0);
|
||||
if(ddrval!=DD_OK)
|
||||
{
|
||||
if(ddrval==DDERR_SURFACELOST) {RestoreDD(1);RestoreDD(0);}
|
||||
if(ddrval==DDERR_SURFACELOST)
|
||||
{
|
||||
RestoreDD(1);
|
||||
RestoreDD(0);
|
||||
}
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
@ -1113,12 +1117,8 @@ void DoVideoConfigFix(void)
|
|||
UpdateRendBounds();
|
||||
}
|
||||
|
||||
//Shows the Video configuration dialog.
|
||||
void ConfigVideo(void)
|
||||
void PushCurrentVideoSettings()
|
||||
{
|
||||
DialogBox(fceu_hInstance, "VIDEOCONFIG", hAppWnd, VideoConCallB);
|
||||
DoVideoConfigFix();
|
||||
|
||||
if(fullscreen)
|
||||
{
|
||||
SetFSVideoMode();
|
||||
|
@ -1129,6 +1129,17 @@ void ConfigVideo(void)
|
|||
SetVideoMode(0);
|
||||
changerecursive = 0;
|
||||
}
|
||||
|
||||
SetMainWindowStuff();
|
||||
}
|
||||
|
||||
|
||||
//Shows the Video configuration dialog.
|
||||
void ConfigVideo(void)
|
||||
{
|
||||
DialogBox(fceu_hInstance, "VIDEOCONFIG", hAppWnd, VideoConCallB);
|
||||
DoVideoConfigFix();
|
||||
|
||||
PushCurrentVideoSettings();
|
||||
}
|
||||
|
||||
|
|
|
@ -53,5 +53,6 @@ void DoVideoConfigFix();
|
|||
void FCEUD_BlitScreen(uint8 *XBuf);
|
||||
void ResetVideo();
|
||||
void SetFSVideoMode();
|
||||
void PushCurrentVideoSettings();
|
||||
|
||||
#endif
|
||||
|
|
|
@ -566,7 +566,7 @@ void ALoad(char *nameo, char* innerFilename)
|
|||
|
||||
UpdateCheckedMenuItems();
|
||||
|
||||
SetMainWindowStuff();
|
||||
PushCurrentVideoSettings();
|
||||
|
||||
std::string recentFileName = nameo;
|
||||
if(GameInfo->archiveFilename && GameInfo->archiveCount>1)
|
||||
|
@ -987,8 +987,7 @@ LRESULT FAR PASCAL AppWndProc(HWND hWnd,UINT msg,WPARAM wParam,LPARAM lParam)
|
|||
FCEUI_SetVidSystem(pal_emulation);
|
||||
RefreshThrottleFPS();
|
||||
UpdateCheckedMenuItems();
|
||||
// DoVideoConfigFix();
|
||||
SetMainWindowStuff();
|
||||
PushCurrentVideoSettings();
|
||||
break;
|
||||
|
||||
case MENU_DISPLAY_BG:
|
||||
|
|
Loading…
Reference in New Issue