[PATCH] notepad: Use the default window position and size.
Zebediah Figura
zfigura at codeweavers.com
Fri Jul 7 18:58:00 CDT 2017
Signed-off-by: Zebediah Figura <zfigura at codeweavers.com>
---
programs/notepad/main.c | 13 ++-----------
1 file changed, 2 insertions(+), 11 deletions(-)
diff --git a/programs/notepad/main.c b/programs/notepad/main.c
index 6f567a9951f..7308801ec4e 100644
--- a/programs/notepad/main.c
+++ b/programs/notepad/main.c
@@ -744,7 +744,6 @@ int PASCAL WinMain(HINSTANCE hInstance, HINSTANCE prev, LPSTR cmdline, int show)
WNDCLASSEXW class;
HMONITOR monitor;
MONITORINFO info;
- INT x, y;
static const WCHAR className[] = {'N','o','t','e','p','a','d',0};
static const WCHAR winName[] = {'N','o','t','e','p','a','d',0};
@@ -775,17 +774,9 @@ int PASCAL WinMain(HINSTANCE hInstance, HINSTANCE prev, LPSTR cmdline, int show)
info.cbSize = sizeof(info);
GetMonitorInfoW( monitor, &info );
- x = main_rect.left;
- y = main_rect.top;
- if (main_rect.left >= info.rcWork.right ||
- main_rect.top >= info.rcWork.bottom ||
- main_rect.right < info.rcWork.left ||
- main_rect.bottom < info.rcWork.top)
- x = y = CW_USEDEFAULT;
-
Globals.hMainWnd =
- CreateWindowW(className, winName, WS_OVERLAPPEDWINDOW, x, y,
- main_rect.right - main_rect.left, main_rect.bottom - main_rect.top,
+ CreateWindowW(className, winName, WS_OVERLAPPEDWINDOW,
+ CW_USEDEFAULT, CW_USEDEFAULT, CW_USEDEFAULT, CW_USEDEFAULT,
NULL, NULL, Globals.hInstance, NULL);
if (!Globals.hMainWnd)
{
--
2.13.2
More information about the wine-patches
mailing list