window: ignore nonpositive resize dimensions

This commit is contained in:
nmzik committed 2026-10-03 17:54:06 +02:00
1 parent ab98fb1ff9
commit 0e8ded37b9
2 files changed
+7 -5

No files matched your search

@@ -42,7 +42,7 @@ struct WindowContext {
void RefreshSurfaceCapabilities();
void UpdateIcon();
void UpdateTitle();
void Resize(uint32_t width, uint32_t height);
void Resize(int width, int height);
void ProcessWindowEvent(const SDL_WindowEvent& event);
void ProcessDisplayEvent(const SDL_DisplayEvent& event);
void ProcessEvent(double time_seconds);