summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorK. S. Ernest (iFire) Lee <ernest.lee@chibifire.com>2019-03-15 01:22:51 -0700
committerK. S. Ernest (iFire) Lee <ernest.lee@chibifire.com>2019-03-15 01:55:50 -0700
commit1971c09e5e16c3a956558ec683ae5a1f5acd49b0 (patch)
treef39111fb5066afc7efdde0a5017f6a39738ace33
parent775e74e0d41daa9cf3679c2e215f4ef46eee9cbc (diff)
Fix scaling issue for texture button focus texture.
-rw-r--r--scene/gui/texture_button.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/scene/gui/texture_button.cpp b/scene/gui/texture_button.cpp
index 19bef9fdf5..795b25cce0 100644
--- a/scene/gui/texture_button.cpp
+++ b/scene/gui/texture_button.cpp
@@ -223,8 +223,7 @@ void TextureButton::_notification(int p_what) {
}
if (has_focus() && focused.is_valid()) {
- Rect2 drect(Point2(), get_size());
- draw_texture_rect(focused, drect, false);
+ draw_texture_rect(focused, _position_rect, false);
};
} break;
}