mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-09-08 12:28:14 +00:00
Flip this around to do the simpler condition first.
This commit is contained in:
@@ -745,8 +745,8 @@ SetWindowStyle(SDL_Window * window, unsigned int style)
|
|||||||
x = (int)point.x;
|
x = (int)point.x;
|
||||||
y = (int)(window->h - point.y);
|
y = (int)(window->h - point.y);
|
||||||
|
|
||||||
if (x < 0 || x >= window->w || y < 0 || y >= window->h) {
|
if (window->flags & SDL_WINDOW_INPUT_GRABBED) {
|
||||||
if (window->flags & SDL_WINDOW_INPUT_GRABBED) {
|
if (x < 0 || x >= window->w || y < 0 || y >= window->h) {
|
||||||
if (x < 0) {
|
if (x < 0) {
|
||||||
x = 0;
|
x = 0;
|
||||||
} else if (x >= window->w) {
|
} else if (x >= window->w) {
|
||||||
|
Reference in New Issue
Block a user