Skip to content

Commit

Permalink
Fix PointerType in guiFormSpecMenu
Browse files Browse the repository at this point in the history
  • Loading branch information
Wuzzy2 committed Dec 23, 2024
1 parent 376e182 commit aa8c38a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gui/guiFormSpecMenu.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3824,7 +3824,7 @@ void GUIFormSpecMenu::showSuperTip(GUIHyperText *e, const SuperTipSpec &spec)
int tooltip_offset_x = m_btn_height;
int tooltip_offset_y = m_btn_height;

if (m_pointer_type == PointerType::Touch) {
if (RenderingEngine::getLastPointerType() == PointerType::Touch) {
tooltip_offset_x *= 3;
tooltip_offset_y = 0;
if (m_pointer.X > (s32)screenSize.X / 2)
Expand Down

0 comments on commit aa8c38a

Please sign in to comment.