| ... | @@ -604,6 +604,11 @@ export class GhosttyTerminalSurface { | ... | @@ -604,6 +604,11 @@ export class GhosttyTerminalSurface { |
| 604 | | 604 | |
| 605 | const context = canvas.getContext("2d", { alpha: false }); | 605 | const context = canvas.getContext("2d", { alpha: false }); |
| 606 | if (!context) throw new Error("Canvas 2D is unavailable"); | 606 | if (!context) throw new Error("Canvas 2D is unavailable"); |
| | 607 | // An opaque canvas backing store initializes to solid black, and the font |
| | 608 | // and WASM loads below leave it on screen for the whole setup window; paint |
| | 609 | // the theme background first so the mount never flashes a black box. |
| | 610 | context.fillStyle = `rgb(${options.theme.background.r}, ${options.theme.background.g}, ${options.theme.background.b})`; |
| | 611 | context.fillRect(0, 0, canvas.width, canvas.height); |
| 607 | const fontSize = terminalFontSize(options.font?.size); | 612 | const fontSize = terminalFontSize(options.font?.size); |
| 608 | try { | 613 | try { |
| 609 | // Cell metrics must come from the faces that will render; measuring before | 614 | // Cell metrics must come from the faces that will render; measuring before |