Fix #20365: new render window does not respect Windows taskbar at top of screen.
This commit is contained in:
parent
be6d0ca63b
commit
2a1644401e
@ -158,11 +158,16 @@ GHOST_WindowWin32::GHOST_WindowWin32(
|
|||||||
width = tw;
|
width = tw;
|
||||||
left = rect.left;
|
left = rect.left;
|
||||||
}
|
}
|
||||||
|
else if(left < rect.left)
|
||||||
|
left = rect.left;
|
||||||
|
|
||||||
if(th < height)
|
if(th < height)
|
||||||
{
|
{
|
||||||
height = th;
|
height = th;
|
||||||
top = rect.top;
|
top = rect.top;
|
||||||
}
|
}
|
||||||
|
else if(top > rect.top)
|
||||||
|
top = rect.top;
|
||||||
|
|
||||||
m_hWnd = ::CreateWindow(
|
m_hWnd = ::CreateWindow(
|
||||||
s_windowClassName, // pointer to registered class name
|
s_windowClassName, // pointer to registered class name
|
||||||
|
Loading…
Reference in New Issue
Block a user