Fix some toolbar resizing bugs

This commit is contained in:
David Hrdlička
2022-01-31 03:09:02 +01:00
parent 9bb3669be9
commit 7c6c96b0e7
2 changed files with 6 additions and 6 deletions

View File

@@ -1135,12 +1135,15 @@ plat_setfullscreen(int on)
ResizeWindowByClientArea(hwndMain, temp_x, temp_y + (hide_status_bar ? 0 : sbar_height) + (hide_tool_bar ? 0 : tbar_height));
}
/* Toolbar. */
MoveWindow(hwndRebar, 0, 0, temp_x, tbar_height, TRUE);
/* Render window. */
MoveWindow(hwndRender, 0, 0, temp_x, temp_y, TRUE);
MoveWindow(hwndRender, 0, hide_tool_bar ? 0 : tbar_height, temp_x, temp_y, TRUE);
GetWindowRect(hwndRender, &rect);
/* Status bar. */
MoveWindow(hwndSBAR, 0, rect.bottom, temp_x, 17, TRUE);
MoveWindow(hwndSBAR, 0, rect.bottom, temp_x, sbar_height, TRUE);
if (mouse_capture)
ClipCursor(&rect);