Revision: 4464
http://tigervnc.svn.sourceforge.net/tigervnc/?rev=4464&view=rev
Author: dcommander
Date: 2011-06-06 21:32:08 +0000 (Mon, 06 Jun 2011)
Log Message:
-----------
Make full-screen mode span all monitors in a multi-monitor system
Modified Paths:
--------------
branches/1_1/win/vncviewer/DesktopWindow.cxx
Modified: branches/1_1/win/vncviewer/DesktopWindow.cxx
===================================================================
--- branches/1_1/win/vncviewer/DesktopWindow.cxx 2011-06-03 11:45:15 UTC
(rev 4463)
+++ branches/1_1/win/vncviewer/DesktopWindow.cxx 2011-06-06 21:32:08 UTC
(rev 4464)
@@ -1,5 +1,5 @@
/* Copyright (C) 2002-2005 RealVNC Ltd. All Rights Reserved.
- * Copyright (C) 2010 D. R. Commander. All Rights Reserved.
+ * Copyright (C) 2010-2011 D. R. Commander. All Rights Reserved.
*
* This is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -265,8 +265,11 @@
// Save the current window position
GetWindowRect(handle, &fullscreenOldRect);
- // Find the size of the display the window is on
- MonitorInfo mi(handle);
+ // Find the size of the virtual display
+ int cx = GetSystemMetrics(SM_CXVIRTUALSCREEN);
+ int cy = GetSystemMetrics(SM_CYVIRTUALSCREEN);
+ int x = GetSystemMetrics(SM_XVIRTUALSCREEN);
+ int y = GetSystemMetrics(SM_YVIRTUALSCREEN);
// Hide the toolbar
if (tb.isVisible())
@@ -280,10 +283,7 @@
vlog.debug("flags=%x", flags);
SetWindowLong(handle, GWL_STYLE, flags);
- SetWindowPos(handle, HWND_TOP, mi.rcMonitor.left, mi.rcMonitor.top,
- mi.rcMonitor.right-mi.rcMonitor.left,
- mi.rcMonitor.bottom-mi.rcMonitor.top,
- SWP_FRAMECHANGED);
+ SetWindowPos(handle, HWND_TOP, x, y, cx, cy, SWP_FRAMECHANGED);
} else if (!fs && fullscreenActive) {
fullscreenActive = bumpScroll = false;
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
EditLive Enterprise is the world's most technically advanced content
authoring tool. Experience the power of Track Changes, Inline Image
Editing and ensure content is compliant with Accessibility Checking.
http://p.sf.net/sfu/ephox-dev2dev
_______________________________________________
Tigervnc-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tigervnc-commits