Win32: set HWND_TOPMOST for fullscreen window

Some graphic drivers seem to display the taskbar on non-viewport areas
if the window is not set to topmost.
This commit is contained in:
OV2 2011-05-07 03:13:22 +02:00
parent 0271051f41
commit 414782518b
2 changed files with 2 additions and 2 deletions

View File

@ -605,7 +605,7 @@ void ToggleFullScreen ()
if(GetMenu(GUI.hWnd)!=NULL)
SetMenu(GUI.hWnd,NULL);
SetWindowLong (GUI.hWnd, GWL_STYLE, WS_POPUP|WS_VISIBLE);
SetWindowPos (GUI.hWnd, HWND_TOP, 0, 0, GUI.FullscreenMode.width, GUI.FullscreenMode.height, SWP_DRAWFRAME|SWP_FRAMECHANGED);
SetWindowPos (GUI.hWnd, HWND_TOPMOST, 0, 0, GUI.FullscreenMode.width, GUI.FullscreenMode.height, SWP_DRAWFRAME|SWP_FRAMECHANGED);
if(!S9xDisplayOutput->SetFullscreen(true))
GUI.FullScreen = false;
}

View File

@ -5519,7 +5519,7 @@ INT_PTR CALLBACK DlgMultiROMProc(HWND hDlg, UINT msg, WPARAM wParam, LPARAM lPar
SetCurrentDirectory(S9xGetDirectoryT(BIOS_DIR));
_tfullpath(path, TEXT("stbios.bin"), MAX_PATH);
SetDlgItemText(hDlg, IDC_MULTICART_BIOSEDIT, path);
FILE* ftemp = fopen(_tToChar(path), "rb");
FILE* ftemp = _tfopen(path, TEXT("rb"));
if(ftemp)
{
fclose(ftemp);