Don't use AdjustWindowRectEx to determine window sizes

- GetSystemMetrics can lie about the window border sizes, so we can't
  trust it if the executable is flagged as Vista-targetting
  (default behavior for VS2012/2013).
This commit is contained in:
Randy Heit 2015-03-11 13:59:51 -05:00
commit 4f04fb4fbd
6 changed files with 22 additions and 20 deletions

View file

@ -907,11 +907,7 @@ void DoMain (HINSTANCE hInstance)
FixPathSeperator(program);
progdir.Truncate((long)strlen(program));
progdir.UnlockBuffer();
/*
height = GetSystemMetrics (SM_CYFIXEDFRAME) * 2 +
GetSystemMetrics (SM_CYCAPTION) + 12 * 32;
width = GetSystemMetrics (SM_CXFIXEDFRAME) * 2 + 8 * 78;
*/
width = 512;
height = 384;