GDK: Use WIN_IsRectEmpty (IsRectEmpty is desktop-only)
This commit is contained in:
@@ -453,7 +453,7 @@ static int SetupWindowData(SDL_VideoDevice *_this, SDL_Window *window, HWND hwnd
|
|||||||
}
|
}
|
||||||
if (!(window->flags & SDL_WINDOW_MINIMIZED)) {
|
if (!(window->flags & SDL_WINDOW_MINIMIZED)) {
|
||||||
RECT rect;
|
RECT rect;
|
||||||
if (GetClientRect(hwnd, &rect) && !IsRectEmpty(&rect)) {
|
if (GetClientRect(hwnd, &rect) && !WIN_IsRectEmpty(&rect)) {
|
||||||
int w = rect.right;
|
int w = rect.right;
|
||||||
int h = rect.bottom;
|
int h = rect.bottom;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user