diff options
author | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2010-04-06 21:11:38 +0400 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2010-04-06 21:11:38 +0400 |
commit | 2a1644401e2866fa51027390fa605d840842649d (patch) | |
tree | 8d7a95452b4e659df07d501c4b18509eeabd3691 /intern | |
parent | be6d0ca63b823ea93f183e31dbda9bc2cdd6af6a (diff) |
Fix #20365: new render window does not respect Windows taskbar at top of screen.
Diffstat (limited to 'intern')
-rw-r--r-- | intern/ghost/intern/GHOST_WindowWin32.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/intern/ghost/intern/GHOST_WindowWin32.cpp b/intern/ghost/intern/GHOST_WindowWin32.cpp index 4aeccd7fe2a..27bea2cec95 100644 --- a/intern/ghost/intern/GHOST_WindowWin32.cpp +++ b/intern/ghost/intern/GHOST_WindowWin32.cpp @@ -158,11 +158,16 @@ GHOST_WindowWin32::GHOST_WindowWin32( width = tw; left = rect.left; } + else if(left < rect.left) + left = rect.left; + if(th < height) { height = th; top = rect.top; } + else if(top > rect.top) + top = rect.top; m_hWnd = ::CreateWindow( s_windowClassName, // pointer to registered class name |