Repositioned some code
This commit is contained in:
@@ -467,8 +467,6 @@ int RegisterWinClass(void)
|
|||||||
wcl.lpszMenuName = NULL;
|
wcl.lpszMenuName = NULL;
|
||||||
wcl.lpszClassName = "ZSNESWIN";
|
wcl.lpszClassName = "ZSNESWIN";
|
||||||
|
|
||||||
CheckPriority();
|
|
||||||
|
|
||||||
if (RegisterClass(&wcl) == 0) return FALSE;
|
if (RegisterClass(&wcl) == 0) return FALSE;
|
||||||
|
|
||||||
return TRUE;
|
return TRUE;
|
||||||
@@ -1412,6 +1410,9 @@ void initwinvideo(void)
|
|||||||
hMainWindow = CreateWindow( "ZSNESWIN", WinName, WS_VISIBLE|WS_POPUP,X,Y, //WS_OVERLAPPED "ZSNESWIN"
|
hMainWindow = CreateWindow( "ZSNESWIN", WinName, WS_VISIBLE|WS_POPUP,X,Y, //WS_OVERLAPPED "ZSNESWIN"
|
||||||
WindowWidth,WindowHeight,NULL,NULL,hInst,NULL);
|
WindowWidth,WindowHeight,NULL,NULL,hInst,NULL);
|
||||||
|
|
||||||
|
CheckPriority();
|
||||||
|
CheckAlwaysOnTop();
|
||||||
|
|
||||||
if(!hMainWindow) { return; }
|
if(!hMainWindow) { return; }
|
||||||
|
|
||||||
ShowWindow(hMainWindow, SW_SHOWNORMAL);
|
ShowWindow(hMainWindow, SW_SHOWNORMAL);
|
||||||
|
|||||||
Reference in New Issue
Block a user