summaryrefslogtreecommitdiffstats
path: root/src/core/Frontend.cpp
diff options
context:
space:
mode:
authorerorcun <erayorcunus@gmail.com>2020-04-18 20:38:33 +0200
committerGitHub <noreply@github.com>2020-04-18 20:38:33 +0200
commit6e24cb28ad0b1b0cdae7eee015f1ad7a8ae09206 (patch)
tree44739623bb7c4b981495e41a31af7ca56db4cd64 /src/core/Frontend.cpp
parentMerge pull request #473 from erorcun/erorcun (diff)
parentHide Vehicle/Zone name during Wasted/Busted... (diff)
downloadre3-6e24cb28ad0b1b0cdae7eee015f1ad7a8ae09206.tar
re3-6e24cb28ad0b1b0cdae7eee015f1ad7a8ae09206.tar.gz
re3-6e24cb28ad0b1b0cdae7eee015f1ad7a8ae09206.tar.bz2
re3-6e24cb28ad0b1b0cdae7eee015f1ad7a8ae09206.tar.lz
re3-6e24cb28ad0b1b0cdae7eee015f1ad7a8ae09206.tar.xz
re3-6e24cb28ad0b1b0cdae7eee015f1ad7a8ae09206.tar.zst
re3-6e24cb28ad0b1b0cdae7eee015f1ad7a8ae09206.zip
Diffstat (limited to 'src/core/Frontend.cpp')
-rw-r--r--src/core/Frontend.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/core/Frontend.cpp b/src/core/Frontend.cpp
index e4f8ac96..0966b2a2 100644
--- a/src/core/Frontend.cpp
+++ b/src/core/Frontend.cpp
@@ -303,9 +303,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