Fixed window position bug

This commit is contained in:
pagefault
2001-05-06 00:54:56 +00:00
parent ccbcf4ac4a
commit 3174dd1f53
2 changed files with 6 additions and 4 deletions

View File

@@ -546,9 +546,9 @@ NEWSYM UseCubicSpline, db 1
NEWSYM LargeSoundBuf, db 0
NEWSYM HighPriority, db 0
NEWSYM AlwaysOnTop, db 0
NEWSYM SaveMainWindowPos, db 1
NEWSYM MainWindowX, dw -1
NEWSYM MainWindowY, dw -1
NEWSYM SaveMainWindowPos, db 2
NEWSYM MainWindowX, dw 0
NEWSYM MainWindowY, dw 0
GUIsave equ $-GUIRAdd

View File

@@ -1412,7 +1412,9 @@ void initwinvideo(void)
if(FullScreen==1) {X=0; Y=0;}
if(hMainWindow) CloseWindow(hMainWindow);
if (SaveMainWindowPos == 1 && MainWindowX != -1) { X = MainWindowX; Y = MainWindowY; }
if (SaveMainWindowPos == 1) { X = MainWindowX; Y = MainWindowY; }
if (SaveMainWindowPos == 2) SaveMainWindowPos = 1;
hMainWindow = CreateWindow( "ZSNESWIN", WinName, WS_VISIBLE|WS_POPUP,X,Y, //WS_OVERLAPPED "ZSNESWIN"
WindowWidth,WindowHeight,NULL,NULL,hInst,NULL);