move checks into function + cleanup

This commit is contained in:
FunkyFr3sh 2024-09-07 16:44:35 +02:00
parent 614e340f15
commit 0a65317d96
2 changed files with 12 additions and 12 deletions

View file

@ -573,6 +573,9 @@ BOOL util_get_lowest_resolution(
void util_toggle_maximize()
{
if (!g_config.resizable || !g_config.windowed || g_config.fullscreen)
return;
RECT client_rc;
RECT dst_rc;