From 0b5e1927c1c7a4759bba2dd612d4b4c38fb7e2dd Mon Sep 17 00:00:00 2001 From: luigi__ Date: Sat, 27 Dec 2008 00:49:51 +0000 Subject: [PATCH] The default window position is now CW_USEDEFAULT instead of 0, so upon the first launch the window isn't placed in the top-left corner. --- desmume/src/windows/main.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/desmume/src/windows/main.cpp b/desmume/src/windows/main.cpp index 39a5d124a..7ff99b13f 100644 --- a/desmume/src/windows/main.cpp +++ b/desmume/src/windows/main.cpp @@ -1195,8 +1195,8 @@ int WINAPI WinMain (HINSTANCE hThisInstance, GPU_rotation = GetPrivateProfileInt("Video","Window Rotate", 0, IniName); ForceRatio = GetPrivateProfileInt("Video","Window Force Ratio", 1, IniName); FpsDisplay = GetPrivateProfileInt("Display","Display Fps", 0, IniName); - WndX = GetPrivateProfileInt("Video","WindowPosX", 0, IniName); - WndY = GetPrivateProfileInt("Video","WindowPosY", 0, IniName); + WndX = GetPrivateProfileInt("Video","WindowPosX", CW_USEDEFAULT, IniName); + WndY = GetPrivateProfileInt("Video","WindowPosY", CW_USEDEFAULT, IniName); frameCounterDisplay = GetPrivateProfileInt("Display","FrameCounter", 0, IniName); //sprintf(text, "%s", DESMUME_NAME_AND_VERSION); MainWindow = new WINCLASS(CLASSNAME, hThisInstance);