Initialize background image to background color

This commit is contained in:
Leroy Hopson 2024-02-10 22:51:11 +13:00
parent b8431e4a93
commit 58f4f8f216
No known key found for this signature in database
GPG key ID: D2747312A6DB51AA

View file

@ -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));