diff options
author | jan.nijtmans <jan.nijtmans@noemail.net> | 2012-04-16 22:23:17 (GMT) |
---|---|---|
committer | jan.nijtmans <jan.nijtmans@noemail.net> | 2012-04-16 22:23:17 (GMT) |
commit | 14843c0deb1082cff5cdcce06824de709c18195b (patch) | |
tree | 9ccfcdb8140291a877a3fa051032fca6560eb29d /win | |
parent | 391bbba2bedcf4ba8d34cfd85318a33c2f3cf7d6 (diff) | |
download | tk-14843c0deb1082cff5cdcce06824de709c18195b.zip tk-14843c0deb1082cff5cdcce06824de709c18195b.tar.gz tk-14843c0deb1082cff5cdcce06824de709c18195b.tar.bz2 |
Fix bug 533519
FossilOrigin-Name: 1507edf87504200307c4ab178fe3a640cd14385c
Diffstat (limited to 'win')
-rw-r--r-- | win/tkWinWm.c | 17 |
1 files changed, 4 insertions, 13 deletions
diff --git a/win/tkWinWm.c b/win/tkWinWm.c index 2097938..59287c8 100644 --- a/win/tkWinWm.c +++ b/win/tkWinWm.c @@ -5994,19 +5994,10 @@ Tk_GetVRootGeometry(tkwin, xPtr, yPtr, widthPtr, heightPtr) * here. */ int *widthPtr, *heightPtr; /* Store dimensions of virtual root here. */ { - TkWindow *winPtr = (TkWindow *) tkwin; - - /* - * XXX: This is not correct for multiple monitors. There may be many - * changes required to get this right, and it may effect existing - * applications that don't consider possible <0 vroot. See - * http://msdn.microsoft.com/library/en-us/gdi/monitor_3lrn.asp - * for more info. - */ - *xPtr = 0; - *yPtr = 0; - *widthPtr = DisplayWidth(winPtr->display, winPtr->screenNum); - *heightPtr = DisplayHeight(winPtr->display, winPtr->screenNum); + *xPtr = GetSystemMetrics(SM_XVIRTUALSCREEN); + *yPtr = GetSystemMetrics(SM_YVIRTUALSCREEN); + *widthPtr = GetSystemMetrics(SM_CXVIRTUALSCREEN); + *heightPtr = GetSystemMetrics(SM_CYVIRTUALSCREEN); } /* |