diff options
author | nijtmans@users.sourceforge.net <jan.nijtmans> | 2012-04-21 08:06:59 (GMT) |
---|---|---|
committer | nijtmans@users.sourceforge.net <jan.nijtmans> | 2012-04-21 08:06:59 (GMT) |
commit | 15c53484980d90308491787afbdfdccf856a4ad9 (patch) | |
tree | 90a40fd039da5472d189be8b8b34c440f4de0dff /win/tkWinWm.c | |
parent | 271e9dcf526c4ae777569cd4a6bf2f465632586a (diff) | |
parent | c4e011dc3647d4da4ba4b63b27f2b5b0d905eaa7 (diff) | |
download | tk-15c53484980d90308491787afbdfdccf856a4ad9.zip tk-15c53484980d90308491787afbdfdccf856a4ad9.tar.gz tk-15c53484980d90308491787afbdfdccf856a4ad9.tar.bz2 |
same bugfix, but now applied to trunk
Diffstat (limited to 'win/tkWinWm.c')
-rw-r--r-- | win/tkWinWm.c | 18 |
1 files changed, 4 insertions, 14 deletions
diff --git a/win/tkWinWm.c b/win/tkWinWm.c index e4c9c34..2aa251c 100644 --- a/win/tkWinWm.c +++ b/win/tkWinWm.c @@ -6401,20 +6401,10 @@ Tk_GetVRootGeometry( int *widthPtr, int *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); } /* |