From 804b68c9814e6d3ffe8adb23304975ea6c341dab Mon Sep 17 00:00:00 2001 From: "K. S. Ernest (iFire) Lee" Date: Fri, 15 Mar 2019 01:22:51 -0700 Subject: [PATCH] Fix scaling issue for texture button focus texture. (cherry picked from commit 1971c09e5e16c3a956558ec683ae5a1f5acd49b0) --- scene/gui/texture_button.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/scene/gui/texture_button.cpp b/scene/gui/texture_button.cpp index 19bef9fdf55..795b25cce0d 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; }