Fix love.resize when SDL3 is used

Also fixes #2100.
This commit is contained in:
Sasha Szpakowski
2024-10-14 22:34:24 -03:00
parent b69a22dca3
commit 31ce65b9d2
2 changed files with 33 additions and 1 deletions
+1 -1
View File
@@ -808,7 +808,7 @@ bool Window::onSizeChanged(int width, int height)
#endif
#if SDL_VERSION_ATLEAST(3, 0, 0)
if (SDL_GetWindowSizeInPixels(window, &pixelWidth, &pixelHeight))
if (!SDL_GetWindowSizeInPixels(window, &pixelWidth, &pixelHeight))
#else
// TODO: Use SDL_GetWindowSizeInPixels here when supported.
if (glcontext != nullptr)