diff options
author | gennariarmando <gennariarmando@outlook.com> | 2020-04-18 18:13:47 +0200 |
---|---|---|
committer | gennariarmando <gennariarmando@outlook.com> | 2020-04-18 18:14:38 +0200 |
commit | ffe5dce7f58b6eae5b2bcb6cb9e4d4c0d8a8f426 (patch) | |
tree | 1265448d1033ef26fa09bcb49aa278d9dc6cc43c /src/core/Frontend.cpp | |
parent | Changed extraOffset value. (diff) | |
download | re3-ffe5dce7f58b6eae5b2bcb6cb9e4d4c0d8a8f426.tar re3-ffe5dce7f58b6eae5b2bcb6cb9e4d4c0d8a8f426.tar.gz re3-ffe5dce7f58b6eae5b2bcb6cb9e4d4c0d8a8f426.tar.bz2 re3-ffe5dce7f58b6eae5b2bcb6cb9e4d4c0d8a8f426.tar.lz re3-ffe5dce7f58b6eae5b2bcb6cb9e4d4c0d8a8f426.tar.xz re3-ffe5dce7f58b6eae5b2bcb6cb9e4d4c0d8a8f426.tar.zst re3-ffe5dce7f58b6eae5b2bcb6cb9e4d4c0d8a8f426.zip |
Diffstat (limited to 'src/core/Frontend.cpp')
-rw-r--r-- | src/core/Frontend.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/core/Frontend.cpp b/src/core/Frontend.cpp index a900d696..eec143c3 100644 --- a/src/core/Frontend.cpp +++ b/src/core/Frontend.cpp @@ -305,9 +305,11 @@ ScaleAndCenterX(float x) } while(0) #define ProcessRadioIcon(sprite, x, y, radioId, hoverOpt) \ - sprite.Draw(x, y, MENU_X(MENURADIO_ICON_SCALE), MENU_Y(MENURADIO_ICON_SCALE), radioId == m_PrefsRadioStation ? CRGBA(255, 255, 255, 255) : CRGBA(225, 0, 0, 170)); \ - if (CheckHover(x, x + MENU_X(MENURADIO_ICON_SCALE), y, y + MENU_Y(MENURADIO_ICON_SCALE))) \ - m_nHoverOption = hoverOpt; + do { \ + sprite.Draw(x, y, MENU_X(MENURADIO_ICON_SCALE), MENU_Y(MENURADIO_ICON_SCALE), radioId == m_PrefsRadioStation ? CRGBA(255, 255, 255, 255) : CRGBA(225, 0, 0, 170)); \ + if (CheckHover(x, x + MENU_X(MENURADIO_ICON_SCALE), y, y + MENU_Y(MENURADIO_ICON_SCALE))) \ + m_nHoverOption = hoverOpt; \ + } while (0) // --- Functions not in the game/inlined starts |