@@ -900,7 +900,7 @@ void renderMain() {
900
900
static bool hasFileSharingSupport = true ;
901
901
#endif
902
902
903
- #if defined(ios ) || defined(android )
903
+ #if defined(IOS ) || defined(ANDROID )
904
904
static double tStartInput = 0 .0f ;
905
905
static double tEndInput = -100 .0f ;
906
906
#endif
@@ -1321,7 +1321,7 @@ void renderMain() {
1321
1321
hasNewMessages = false ;
1322
1322
1323
1323
// no automatic screen resize support for iOS
1324
- #if defined(ios ) || defined(android )
1324
+ #if defined(IOS ) || defined(ANDROID )
1325
1325
if (displaySize.x < displaySize.y ) {
1326
1326
if (isTextInput) {
1327
1327
messagesHistoryHeigth -= 0 .5f *messagesHistoryHeigthMax*std::min (tShowKeyboard, ImGui::GetTime () - tStartInput) / tShowKeyboard;
@@ -1626,7 +1626,7 @@ void renderMain() {
1626
1626
if (ImGui::IsItemActive () && isTextInput == false ) {
1627
1627
SDL_StartTextInput ();
1628
1628
isTextInput = true ;
1629
- #if defined(ios ) || defined(android )
1629
+ #if defined(IOS ) || defined(ANDROID )
1630
1630
tStartInput = ImGui::GetTime ();
1631
1631
#endif
1632
1632
}
@@ -1687,7 +1687,7 @@ void renderMain() {
1687
1687
if (!ImGui::IsItemHovered () && requestStopTextInput) {
1688
1688
SDL_StopTextInput ();
1689
1689
isTextInput = false ;
1690
- #if defined(ios ) || defined(android )
1690
+ #if defined(IOS ) || defined(ANDROID )
1691
1691
tEndInput = ImGui::GetTime ();
1692
1692
#endif
1693
1693
}
0 commit comments