GDK: Use WIN_IsRectEmpty (IsRectEmpty is desktop-only)

main
Jade Macho 2024-03-01 15:59:30 +01:00 committed by Sam Lantinga
parent 290f64b86c
commit e2a8209263
1 changed files with 1 additions and 1 deletions

View File

@ -453,7 +453,7 @@ static int SetupWindowData(SDL_VideoDevice *_this, SDL_Window *window, HWND hwnd
}
if (!(window->flags & SDL_WINDOW_MINIMIZED)) {
RECT rect;
if (GetClientRect(hwnd, &rect) && !IsRectEmpty(&rect)) {
if (GetClientRect(hwnd, &rect) && !WIN_IsRectEmpty(&rect)) {
int w = rect.right;
int h = rect.bottom;