diff --git a/ClassicNotepad.c b/ClassicNotepad.c index 961f3f5..41fe347 100644 --- a/ClassicNotepad.c +++ b/ClassicNotepad.c @@ -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; diff --git a/ClassicNotepad.iss b/ClassicNotepad.iss index 0ab8abe..f971489 100644 --- a/ClassicNotepad.iss +++ b/ClassicNotepad.iss @@ -1,7 +1,7 @@ [Setup] AppId={{B7CBF4E7-9E8F-4A5B-9B73-7B7E5D5D5E6A}} AppName=ClassicNotepad -AppVersion=1.1.0 +AppVersion=1.3.0 AppPublisher=ClassicNotepad DefaultDirName={autopf}\ClassicNotepad DefaultGroupName=ClassicNotepad