summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authoreray orçunus <erayorcunus@gmail.com>2020-04-18 21:56:49 +0200
committereray orçunus <erayorcunus@gmail.com>2020-04-18 21:56:49 +0200
commit9bfcaff84976b2af7242f846c782287e9bacf851 (patch)
tree4cde772314eab659e8402baf87502c1b289b0a67 /src
parentRpClumpRemoveAtomic update (diff)
downloadre3-9bfcaff84976b2af7242f846c782287e9bacf851.tar
re3-9bfcaff84976b2af7242f846c782287e9bacf851.tar.gz
re3-9bfcaff84976b2af7242f846c782287e9bacf851.tar.bz2
re3-9bfcaff84976b2af7242f846c782287e9bacf851.tar.lz
re3-9bfcaff84976b2af7242f846c782287e9bacf851.tar.xz
re3-9bfcaff84976b2af7242f846c782287e9bacf851.tar.zst
re3-9bfcaff84976b2af7242f846c782287e9bacf851.zip
Diffstat (limited to 'src')
-rw-r--r--src/core/Frontend.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/core/Frontend.cpp b/src/core/Frontend.cpp
index 0966b2a2..6fe06d96 100644
--- a/src/core/Frontend.cpp
+++ b/src/core/Frontend.cpp
@@ -287,7 +287,7 @@ ScaleAndCenterX(float x)
#define ProcessSlider(value, increaseAction, decreaseAction, hoverStartX, hoverEndX) \
do { \
- lastActiveBarX = DisplaySlider(SCREEN_STRETCH_FROM_RIGHT(MENUSLIDER_X + columnWidth), MENU_Y(bitAboveNextItemY), MENU_Y(smallestSliderBar), MENU_Y(usableLineHeight), MENU_X(MENUSLIDER_UNK), value); \
+ lastActiveBarX = DisplaySlider(MENU_X_RIGHT_ALIGNED(MENUSLIDER_X + columnWidth), MENU_Y(bitAboveNextItemY), MENU_Y(smallestSliderBar), MENU_Y(usableLineHeight), MENU_X(MENUSLIDER_UNK), value); \
if (i != m_nCurrOption || !itemsAreSelectable) \
break; \
\
@@ -298,7 +298,7 @@ ScaleAndCenterX(float x)
break; \
\
m_nHoverOption = increaseAction; \
- if (m_nMousePosX < SCREEN_STRETCH_FROM_RIGHT(MENUSLIDER_X + columnWidth)) \
+ if (m_nMousePosX < MENU_X_RIGHT_ALIGNED(MENUSLIDER_X + columnWidth)) \
m_nHoverOption = HOVEROPTION_NOT_HOVERING; \
} while(0)
@@ -1237,7 +1237,6 @@ CMenuManager::Draw()
}
// Sliders
- // We stretch slider start X here(like original code), because it will always be center of screen
int lastActiveBarX;
switch (aScreens[m_nCurrScreen].m_aEntries[i].m_Action) {
case MENUACTION_BRIGHTNESS: