From 2a1644401e2866fa51027390fa605d840842649d Mon Sep 17 00:00:00 2001 From: Brecht Van Lommel Date: Tue, 6 Apr 2010 17:11:38 +0000 Subject: Fix #20365: new render window does not respect Windows taskbar at top of screen. --- intern/ghost/intern/GHOST_WindowWin32.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'intern') 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 -- cgit v1.2.3