summaryrefslogtreecommitdiff
path: root/scene
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2019-03-27 16:55:07 +0100
committerGitHub <noreply@github.com>2019-03-27 16:55:07 +0100
commite02c7612e575523dbd40fad7783b6501f210acfe (patch)
tree8f920a694b6b1906d920dca93666c060a33cf208 /scene
parent04c63478568ba7ef23ac4d42199e0928f0725ef4 (diff)
parent1971c09e5e16c3a956558ec683ae5a1f5acd49b0 (diff)
Merge pull request #27088 from fire/scaling_texture_button_focus
Fix scaling issue for texture button focus texture.
Diffstat (limited to 'scene')
-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;
}