Skip to content

Commit ae50f84

Browse files
committed
[wasm] # fix background color rendering
1 parent d753676 commit ae50f84

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

appcui/src/backend/web_terminal/implementation.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -501,6 +501,7 @@ impl WebTerminal {
501501
let pos_x = global_x as f32 * cell_width;
502502
let pos_y = global_y as f32 * cell_height;
503503
let bg_color = self.color_to_rgba(cell.background);
504+
let bg_color = [bg_color[0] / 255.0, bg_color[1] / 255.0, bg_color[2] / 255.0, bg_color[3]];
504505

505506
let x_ndc = 2.0 * (pos_x / canvas_width) - 1.0;
506507
let y_ndc = 1.0 - 2.0 * (pos_y / canvas_height);

0 commit comments

Comments
 (0)