Skip to content
Snippets Groups Projects
Commit 5e5ddd25 authored by Deucе's avatar Deucе :ok_hand_tone4:
Browse files

Ensure max width and height are initialized

Prevents X11 mode from doing very weird things when we are unable
to get the max window size from the window manager.
Found by scan-build
parent dc75bc36
No related branches found
No related tags found
No related merge requests found
......@@ -1226,7 +1226,8 @@ static void resize_window()
static void init_mode_internal(int mode)
{
int mw, mh;
int mw = 0;
int mh = 0;
x11_get_maxsize(&mw, &mh);
free_last();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment