Skip to content

Commit 422c053

Browse files
committed
Fix SDL init crash on first IDE run
1 parent d4ced1b commit 422c053

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

BeefySysLib/platform/sdl/SdlBFApp.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1039,6 +1039,8 @@ static bool InflateRectToMonitor(SDL_DisplayID monitor, AdjustedMonRect* inflate
10391039

10401040
void SdlBFApp::GetWorkspaceRect(int& x, int& y, int& width, int& height)
10411041
{
1042+
SDLInit();
1043+
10421044
AdjustedMonRect inflateRect = { 0 };
10431045

10441046
int displayCount;

0 commit comments

Comments
 (0)