SDL API renaming: *Is* functions
Feedback from @icculus: "IsTablet" uses "is" as a form of "to be" ...like, the actual question is of its nature. The rest is just a superfluous word in the question and it flows as better English with if (RectEmpty) than if (IsRectEmpty) Fixes https://github.com/libsdl-org/SDL/issues/6932
This commit is contained in:
parent
66351fd4ba
commit
ea0c2f55be
34 changed files with 174 additions and 180 deletions
|
@ -1841,7 +1841,7 @@ void Wayland_SetWindowMouseRect(_THIS, SDL_Window *window)
|
|||
* Just know that this call lets you confine with a rect, SetWindowGrab
|
||||
* lets you confine without a rect.
|
||||
*/
|
||||
if (SDL_IsRectEmpty(&window->mouse_rect) && !(window->flags & SDL_WINDOW_MOUSE_GRABBED)) {
|
||||
if (SDL_RectEmpty(&window->mouse_rect) && !(window->flags & SDL_WINDOW_MOUSE_GRABBED)) {
|
||||
Wayland_input_unconfine_pointer(data->input, window);
|
||||
} else {
|
||||
Wayland_input_confine_pointer(data->input, window);
|
||||
|
@ -1854,7 +1854,7 @@ void Wayland_SetWindowMouseGrab(_THIS, SDL_Window *window, SDL_bool grabbed)
|
|||
|
||||
if (grabbed) {
|
||||
Wayland_input_confine_pointer(data->input, window);
|
||||
} else if (SDL_IsRectEmpty(&window->mouse_rect)) {
|
||||
} else if (SDL_RectEmpty(&window->mouse_rect)) {
|
||||
Wayland_input_unconfine_pointer(data->input, window);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue