From 58f4f8f21670dd61346790404f88f52a4560acf7 Mon Sep 17 00:00:00 2001 From: Leroy Hopson Date: Sat, 10 Feb 2024 22:51:11 +1300 Subject: [PATCH] Initialize background image to background color --- addons/godot_xterm/native/src/terminal.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/addons/godot_xterm/native/src/terminal.cpp b/addons/godot_xterm/native/src/terminal.cpp index 4e3b29e..9c8e853 100644 --- a/addons/godot_xterm/native/src/terminal.cpp +++ b/addons/godot_xterm/native/src/terminal.cpp @@ -507,8 +507,8 @@ void Terminal::draw_screen() { rs->viewport_set_clear_mode(viewport, RenderingServer::ViewportClearMode::VIEWPORT_CLEAR_ONLY_NEXT_FRAME); rs->canvas_item_clear(back_canvas_item); - rs->canvas_item_add_rect(back_canvas_item, rect, palette[TSM_COLOR_BLACK]); - back_image->fill(palette[TSM_COLOR_BLACK]); + rs->canvas_item_add_rect(back_canvas_item, rect, palette[TSM_COLOR_BACKGROUND]); + back_image->fill(palette[TSM_COLOR_BACKGROUND]); rs->canvas_item_clear(fore_canvas_item); rs->canvas_item_add_texture_rect(fore_canvas_item, rect, rs->viewport_get_texture(viewport));