|
@@ -1792,7 +1792,7 @@ LRESULT CALLBACK WIN_WindowProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lPara
|
|
|
}
|
|
|
|
|
|
if (!data->disable_move_size_events) {
|
|
|
- if (GetClientRect(hwnd, &rect) && !WIN_IsRectEmpty(&rect)) {
|
|
|
+ if (GetClientRect(hwnd, &rect) && WIN_WindowRectValid(&rect)) {
|
|
|
ClientToScreen(hwnd, (LPPOINT) &rect);
|
|
|
ClientToScreen(hwnd, (LPPOINT) &rect + 1);
|
|
|
|
|
@@ -1804,7 +1804,7 @@ LRESULT CALLBACK WIN_WindowProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lPara
|
|
|
}
|
|
|
|
|
|
// Moving the window from one display to another can change the size of the window (in the handling of SDL_EVENT_WINDOW_MOVED), so we need to re-query the bounds
|
|
|
- if (GetClientRect(hwnd, &rect) && !WIN_IsRectEmpty(&rect)) {
|
|
|
+ if (GetClientRect(hwnd, &rect) && WIN_WindowRectValid(&rect)) {
|
|
|
w = rect.right;
|
|
|
h = rect.bottom;
|
|
|
|
|
@@ -2084,7 +2084,7 @@ LRESULT CALLBACK WIN_WindowProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lPara
|
|
|
RECT rect;
|
|
|
float x, y;
|
|
|
|
|
|
- if (!GetClientRect(hwnd, &rect) || WIN_IsRectEmpty(&rect)) {
|
|
|
+ if (!GetClientRect(hwnd, &rect) || !WIN_WindowRectValid(&rect)) {
|
|
|
if (inputs) {
|
|
|
SDL_small_free(inputs, isstack);
|
|
|
}
|