Fix scaling issue for texture button focus texture.
(cherry picked from commit 1971c09e5e
)
This commit is contained in:
parent
373e6aa17a
commit
804b68c981
|
@ -223,8 +223,7 @@ void TextureButton::_notification(int p_what) {
|
||||||
}
|
}
|
||||||
if (has_focus() && focused.is_valid()) {
|
if (has_focus() && focused.is_valid()) {
|
||||||
|
|
||||||
Rect2 drect(Point2(), get_size());
|
draw_texture_rect(focused, _position_rect, false);
|
||||||
draw_texture_rect(focused, drect, false);
|
|
||||||
};
|
};
|
||||||
} break;
|
} break;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue