mirror of
https://github.com/lihop/godot-xterm.git
synced 2025-05-04 12:14:24 +02:00
Position background rect at 0,0
This is important when terminal is a child of a Container node and we
set the margin properties, otherwise the background rect is drawn with
an offset.
Former-commit-id: e68d2f55c9
This commit is contained in:
parent
7b42b97610
commit
9e1d0b8ee2
2 changed files with 3 additions and 2 deletions
|
@ -371,7 +371,7 @@ void Terminal::_draw()
|
|||
return;
|
||||
|
||||
/* Draw the full terminal rect background */
|
||||
draw_rect(get_rect(), get_color("Background", "Terminal"));
|
||||
draw_rect(Rect2(Vector2(0, 0), get_rect().size), get_color("Background", "Terminal"));
|
||||
|
||||
for (int row = 0; row < rows; row++)
|
||||
{
|
||||
|
@ -597,4 +597,4 @@ void Terminal::write(Variant data)
|
|||
|
||||
tsm_vte_input(vte, u8, len);
|
||||
framebuffer_age = tsm_screen_draw(screen, text_draw_cb, this);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue