changed screen resolition to 60% os screen
This commit is contained in:
+3
-3
@@ -35,7 +35,7 @@ int swprintf_s(wchar_t *buffer, size_t sizeOfBuffer, const wchar_t *format, ...)
|
||||
|
||||
#define IDM_HELP_ABOUT 4001
|
||||
|
||||
static const WCHAR APP_VERSION[] = L"1.2.0";
|
||||
static const WCHAR APP_VERSION[] = L"1.3.0";
|
||||
|
||||
static HWND g_hEdit = NULL;
|
||||
static HFONT g_hFont = NULL;
|
||||
@@ -1026,10 +1026,10 @@ int APIENTRY wWinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPWSTR lpCmd
|
||||
return -1;
|
||||
}
|
||||
|
||||
int winWidth = 1600;
|
||||
int winHeight = 1200;
|
||||
int screenW = GetSystemMetrics(SM_CXSCREEN);
|
||||
int screenH = GetSystemMetrics(SM_CYSCREEN);
|
||||
int winWidth = (int)(screenW * 0.6);
|
||||
int winHeight = (int)(screenH * 0.6);
|
||||
int posX = (screenW - winWidth) / 2;
|
||||
int posY = (screenH - winHeight) / 2;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user