mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-10-16 06:45:59 +00:00
Fix Xbox link error from IsRectEmpty
This commit is contained in:

committed by
Sam Lantinga

parent
d7a56b93d5
commit
376a3cd100
@@ -825,7 +825,7 @@ void WIN_GetWindowSizeInPixels(SDL_VideoDevice *_this, SDL_Window *window, int *
|
||||
HWND hwnd = data->hwnd;
|
||||
RECT rect;
|
||||
|
||||
if (GetClientRect(hwnd, &rect) && !IsRectEmpty(&rect)) {
|
||||
if (GetClientRect(hwnd, &rect) && !WIN_IsRectEmpty(&rect)) {
|
||||
*w = rect.right;
|
||||
*h = rect.bottom;
|
||||
} else {
|
||||
@@ -1358,7 +1358,7 @@ void WIN_UpdateClipCursor(SDL_Window *window)
|
||||
}
|
||||
}
|
||||
if (SDL_memcmp(&rect, &clipped_rect, sizeof(rect)) != 0) {
|
||||
if (!IsRectEmpty(&rect)) {
|
||||
if (!WIN_IsRectEmpty(&rect)) {
|
||||
if (ClipCursor(&rect)) {
|
||||
data->cursor_clipped_rect = rect;
|
||||
}
|
||||
|
Reference in New Issue
Block a user