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:
parent
8398a6ee75
commit
4f04fb4fbd
6 changed files with 22 additions and 20 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue