[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [20731] branches/blender2.5/blender/intern /ghost/intern/GHOST_WindowWin32.cpp: Win GUI fix: maximize works again without distorted regions
Daniel Genrich
daniel.genrich at gmx.net
Mon Jun 8 13:55:16 CEST 2009
Revision: 20731
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=20731
Author: genscher
Date: 2009-06-08 13:55:16 +0200 (Mon, 08 Jun 2009)
Log Message:
-----------
Win GUI fix: maximize works again without distorted regions
Modified Paths:
--------------
branches/blender2.5/blender/intern/ghost/intern/GHOST_WindowWin32.cpp
Modified: branches/blender2.5/blender/intern/ghost/intern/GHOST_WindowWin32.cpp
===================================================================
--- branches/blender2.5/blender/intern/ghost/intern/GHOST_WindowWin32.cpp 2009-06-08 11:27:40 UTC (rev 20730)
+++ branches/blender2.5/blender/intern/ghost/intern/GHOST_WindowWin32.cpp 2009-06-08 11:55:16 UTC (rev 20731)
@@ -127,8 +127,8 @@
s_windowClassName, // pointer to registered class name
title, // pointer to window name
WS_OVERLAPPEDWINDOW, // window style
- rect.left, // horizontal position of window
- rect.top, // vertical position of window
+ rect.left, // horizontal position of window
+ rect.top, // vertical position of window
width, // window width
height, // window height
0, // handle to parent or owner window
@@ -301,9 +301,9 @@
RECT rect;
LONG_PTR result = ::GetWindowLongPtr(m_hWnd, GWL_STYLE);
+ ::GetWindowRect(m_hWnd, &rect);
+
if((result & (WS_POPUP | WS_MAXIMIZE)) != (WS_POPUP | WS_MAXIMIZE)) {
- SystemParametersInfo(SPI_GETWORKAREA,0,&rect,0);
-
bounds.m_b = rect.bottom-GetSystemMetrics(SM_CYCAPTION)-GetSystemMetrics(SM_CYSIZEFRAME)*2;
bounds.m_l = rect.left;
bounds.m_r = rect.right-GetSystemMetrics(SM_CYSIZEFRAME)*2;
More information about the Bf-blender-cvs
mailing list