mirror of
https://github.com/blawar/GLideN64.git
synced 2024-06-30 08:24:05 +00:00
Fix Project64 when statusbar is hidden
This commit is contained in:
parent
81ac29a04f
commit
14229b93ba
|
@ -166,6 +166,8 @@ bool DisplayWindowWindows::_resizeWindow()
|
|||
{
|
||||
RECT windowRect, statusRect, toolRect;
|
||||
|
||||
windowRect = statusRect = toolRect = { 0 };
|
||||
|
||||
if (m_bFullscreen) {
|
||||
m_screenWidth = config.video.fullscreenWidth;
|
||||
m_screenHeight = config.video.fullscreenHeight;
|
||||
|
@ -179,12 +181,12 @@ bool DisplayWindowWindows::_resizeWindow()
|
|||
_setBufferSize();
|
||||
|
||||
GetClientRect( hWnd, &windowRect );
|
||||
GetWindowRect( hStatusBar, &statusRect );
|
||||
|
||||
if (hStatusBar)
|
||||
GetWindowRect( hStatusBar, &statusRect );
|
||||
|
||||
if (hToolBar)
|
||||
GetWindowRect( hToolBar, &toolRect );
|
||||
else
|
||||
toolRect.bottom = toolRect.top = 0;
|
||||
|
||||
m_heightOffset = (statusRect.bottom - statusRect.top);
|
||||
windowRect.right = windowRect.left + config.video.windowedWidth - 1;
|
||||
|
|
Loading…
Reference in New Issue
Block a user