summaryrefslogtreecommitdiff
path: root/src/ui/window.c
diff options
context:
space:
mode:
authorJaakko Keränen <jaakko.keranen@iki.fi>2021-04-05 23:07:54 +0300
committerJaakko Keränen <jaakko.keranen@iki.fi>2021-04-05 23:07:54 +0300
commit81d4d93d5e258e4808f27648c6c9d2157ac19c4e (patch)
tree399e0ef0d5c86fa6ff34b39a4a9b40617e1bda33 /src/ui/window.c
parentbbbd304ce58b12c0c9df630b4cf28ee15e1e1a68 (diff)
Mobile: Fixing the build post-1.3
Diffstat (limited to 'src/ui/window.c')
-rw-r--r--src/ui/window.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/ui/window.c b/src/ui/window.c
index 94b84935..21864dce 100644
--- a/src/ui/window.c
+++ b/src/ui/window.c
@@ -1596,6 +1596,7 @@ static void checkPixelRatioChange_Window_(iWindow *d) {
1596 1596
1597static iBool handleWindowEvent_Window_(iWindow *d, const SDL_WindowEvent *ev) { 1597static iBool handleWindowEvent_Window_(iWindow *d, const SDL_WindowEvent *ev) {
1598 switch (ev->event) { 1598 switch (ev->event) {
1599#if defined (iPlatformDesktop)
1599 case SDL_WINDOWEVENT_EXPOSED: 1600 case SDL_WINDOWEVENT_EXPOSED:
1600 if (!d->isExposed) { 1601 if (!d->isExposed) {
1601 drawBlank_Window_(d); /* avoid showing system-provided contents */ 1602 drawBlank_Window_(d); /* avoid showing system-provided contents */
@@ -1615,7 +1616,6 @@ static iBool handleWindowEvent_Window_(iWindow *d, const SDL_WindowEvent *ev) {
1615 } 1616 }
1616#endif 1617#endif
1617 return iFalse; 1618 return iFalse;
1618#if defined (iPlatformDesktop)
1619 case SDL_WINDOWEVENT_MOVED: { 1619 case SDL_WINDOWEVENT_MOVED: {
1620 if (d->isMinimized) { 1620 if (d->isMinimized) {
1621 return iFalse; 1621 return iFalse;
@@ -1721,8 +1721,10 @@ static iBool handleWindowEvent_Window_(iWindow *d, const SDL_WindowEvent *ev) {
1721 setCapsLockDown_Keys(iFalse); 1721 setCapsLockDown_Keys(iFalse);
1722 postCommand_App("window.focus.gained"); 1722 postCommand_App("window.focus.gained");
1723#if defined (iPlatformMobile) 1723#if defined (iPlatformMobile)
1724 d->isExposed = iTrue; /* no expose event is sent, so now we know it's visible */
1724 /* Returned to foreground, may have lost buffered content. */ 1725 /* Returned to foreground, may have lost buffered content. */
1725 invalidate_Window_(d); 1726 invalidate_Window_(d);
1727 postRefresh_App();
1726#endif 1728#endif
1727 return iFalse; 1729 return iFalse;
1728 case SDL_WINDOWEVENT_FOCUS_LOST: 1730 case SDL_WINDOWEVENT_FOCUS_LOST: