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

@@ -1419,10 +1419,7 @@ ui_init(int nCmdShow)
scrnsz_x = fixed_size_x;
scrnsz_y = fixed_size_y;
}
if (hide_status_bar)
ResizeWindowByClientArea(hwndMain, scrnsz_x, scrnsz_y);
else
ResizeWindowByClientArea(hwndMain, scrnsz_x, scrnsz_y + sbar_height);
ResizeWindowByClientArea(hwnd, scrnsz_x, scrnsz_y + (hide_status_bar ? 0 : sbar_height) + (hide_tool_bar ? 0 : tbar_height));
}
/* Load the desired language */