mirror of
https://gitea.wildfiregames.com/0ad/0ad.git
synced 2026-10-13 15:14:21 +00:00
Correct button hovering following 8190293f8b / D2325, clarify difference between IsMouseOver and IsMouseHovering following 5122b0f906.
Differential Revision: https://code.wildfiregames.com/D2354 Tested on: clang 8.0.1, Jenkins/vs2015 This was SVN commit r23054.
This commit is contained in:
@@ -138,7 +138,7 @@ const CGUISpriteInstance& IGUIButtonBehavior::GetButtonSprite(const CGUISpriteIn
|
||||
if (!m_pObject.IsEnabled())
|
||||
return sprite_disabled || sprite;
|
||||
|
||||
if (!m_pObject.IsMouseOver())
|
||||
if (!m_pObject.IsMouseHovering())
|
||||
return sprite;
|
||||
|
||||
if (m_Pressed)
|
||||
|
||||
Reference in New Issue
Block a user