From 1971c09e5e16c3a956558ec683ae5a1f5acd49b0 Mon Sep 17 00:00:00 2001 From: "K. S. Ernest (iFire) Lee" Date: Fri, 15 Mar 2019 01:22:51 -0700 Subject: Fix scaling issue for texture button focus texture. --- scene/gui/texture_button.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'scene') 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; } -- cgit v1.2.3