mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-05-17 02:08:27 +00:00
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
|
@ -1295,7 +1295,7 @@ SDLTest_CommonInit(SDLTest_CommonState *state)
|
|||
|
||||
SDL_ShowWindow(state->windows[i]);
|
||||
|
||||
if (!SDL_IsRectEmpty(&state->confine)) {
|
||||
if (!SDL_RectEmpty(&state->confine)) {
|
||||
SDL_SetWindowMouseRect(state->windows[i], &state->confine);
|
||||
}
|
||||
|
||||
|
@ -1913,7 +1913,7 @@ void SDLTest_CommonEvent(SDLTest_CommonState *state, SDL_Event *event, int *done
|
|||
SDL_Rect clip;
|
||||
SDL_GetWindowSize(state->windows[i], &w, &h);
|
||||
SDL_GetRenderClipRect(state->renderers[i], &clip);
|
||||
if (SDL_IsRectEmpty(&clip)) {
|
||||
if (SDL_RectEmpty(&clip)) {
|
||||
clip.x = w / 4;
|
||||
clip.y = h / 4;
|
||||
clip.w = w / 2;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue