Skip to content

Commit 6b05335

Browse files
committed
waver : fix IOS and ANDROID ifdefs
1 parent 00969a1 commit 6b05335

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

examples/waver/common.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -900,7 +900,7 @@ void renderMain() {
900900
static bool hasFileSharingSupport = true;
901901
#endif
902902

903-
#if defined(ios) || defined(android)
903+
#if defined(IOS) || defined(ANDROID)
904904
static double tStartInput = 0.0f;
905905
static double tEndInput = -100.0f;
906906
#endif
@@ -1321,7 +1321,7 @@ void renderMain() {
13211321
hasNewMessages = false;
13221322

13231323
// no automatic screen resize support for iOS
1324-
#if defined(ios) || defined(android)
1324+
#if defined(IOS) || defined(ANDROID)
13251325
if (displaySize.x < displaySize.y) {
13261326
if (isTextInput) {
13271327
messagesHistoryHeigth -= 0.5f*messagesHistoryHeigthMax*std::min(tShowKeyboard, ImGui::GetTime() - tStartInput) / tShowKeyboard;
@@ -1626,7 +1626,7 @@ void renderMain() {
16261626
if (ImGui::IsItemActive() && isTextInput == false) {
16271627
SDL_StartTextInput();
16281628
isTextInput = true;
1629-
#if defined(ios) || defined(android)
1629+
#if defined(IOS) || defined(ANDROID)
16301630
tStartInput = ImGui::GetTime();
16311631
#endif
16321632
}
@@ -1687,7 +1687,7 @@ void renderMain() {
16871687
if (!ImGui::IsItemHovered() && requestStopTextInput) {
16881688
SDL_StopTextInput();
16891689
isTextInput = false;
1690-
#if defined(ios) || defined(android)
1690+
#if defined(IOS) || defined(ANDROID)
16911691
tEndInput = ImGui::GetTime();
16921692
#endif
16931693
}

0 commit comments

Comments
 (0)