mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-10-16 06:45:59 +00:00
Build with -Wfloat-conversion + fix all warnings
This commit is contained in:

committed by
GitHub

parent
17c459e384
commit
a919774fe4
@@ -522,8 +522,8 @@ static void SDLCALL SDL_HideHomeIndicatorHintChanged(void *userdata, const char
|
||||
#endif
|
||||
|
||||
if (self.keyboardHeight) {
|
||||
int rectbottom = self.textInputRect.y + self.textInputRect.h;
|
||||
int keybottom = self.view.bounds.size.height - self.keyboardHeight;
|
||||
int rectbottom = (int)(self.textInputRect.y + self.textInputRect.h);
|
||||
int keybottom = (int)(self.view.bounds.size.height - self.keyboardHeight);
|
||||
if (keybottom < rectbottom) {
|
||||
offset.y = keybottom - rectbottom;
|
||||
}
|
||||
|
Reference in New Issue
Block a user