Revision: 4465
http://tigervnc.svn.sourceforge.net/tigervnc/?rev=4465&view=rev
Author: dcommander
Date: 2011-06-06 21:33:08 +0000 (Mon, 06 Jun 2011)
Log Message:
-----------
Make full-screen mode span all monitors in a multi-monitor system
Modified Paths:
--------------
trunk/win/vncviewer/DesktopWindow.cxx
Property Changed:
----------------
trunk/
Property changes on: trunk
___________________________________________________________________
Modified: svn:mergeinfo
- /branches/1_1:4340,4342-4359,4361,4377,4396-4397,4400,4406,4408
/branches/unified_buildsys:3892-3898
+ /branches/1_1:4340,4342-4359,4361,4377,4396-4397,4400,4406,4408,4464
/branches/unified_buildsys:3892-3898
Modified: trunk/win/vncviewer/DesktopWindow.cxx
===================================================================
--- trunk/win/vncviewer/DesktopWindow.cxx 2011-06-06 21:32:08 UTC (rev
4464)
+++ trunk/win/vncviewer/DesktopWindow.cxx 2011-06-06 21:33:08 UTC (rev
4465)
@@ -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