mirror of
https://github.com/blawar/GLideN64.git
synced 2024-07-04 10:03:36 +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;
|
RECT windowRect, statusRect, toolRect;
|
||||||
|
|
||||||
|
windowRect = statusRect = toolRect = { 0 };
|
||||||
|
|
||||||
if (m_bFullscreen) {
|
if (m_bFullscreen) {
|
||||||
m_screenWidth = config.video.fullscreenWidth;
|
m_screenWidth = config.video.fullscreenWidth;
|
||||||
m_screenHeight = config.video.fullscreenHeight;
|
m_screenHeight = config.video.fullscreenHeight;
|
||||||
|
@ -179,12 +181,12 @@ bool DisplayWindowWindows::_resizeWindow()
|
||||||
_setBufferSize();
|
_setBufferSize();
|
||||||
|
|
||||||
GetClientRect( hWnd, &windowRect );
|
GetClientRect( hWnd, &windowRect );
|
||||||
GetWindowRect( hStatusBar, &statusRect );
|
|
||||||
|
if (hStatusBar)
|
||||||
|
GetWindowRect( hStatusBar, &statusRect );
|
||||||
|
|
||||||
if (hToolBar)
|
if (hToolBar)
|
||||||
GetWindowRect( hToolBar, &toolRect );
|
GetWindowRect( hToolBar, &toolRect );
|
||||||
else
|
|
||||||
toolRect.bottom = toolRect.top = 0;
|
|
||||||
|
|
||||||
m_heightOffset = (statusRect.bottom - statusRect.top);
|
m_heightOffset = (statusRect.bottom - statusRect.top);
|
||||||
windowRect.right = windowRect.left + config.video.windowedWidth - 1;
|
windowRect.right = windowRect.left + config.video.windowedWidth - 1;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user