Commit 77e29d9
fix: clear canvas before filling to support transparent backgrounds (#116)
* fix: clear canvas before filling to support transparent backgrounds
When using a transparent background color, fillRect composites rather than
replaces pixels. Add clearRect before fillRect in renderLine, clear, and
renderScrollbar to properly erase previous content before applying the
background color. This fixes content piling up when using transparent
backgrounds and ensures selection highlighting clears properly.
Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
* style: remove extra blank line
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
---------
Co-authored-by: Claude Haiku 4.5 <noreply@anthropic.com>1 parent 03ead6e commit 77e29d9
1 file changed
Lines changed: 10 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
515 | 515 | | |
516 | 516 | | |
517 | 517 | | |
| 518 | + | |
518 | 519 | | |
519 | | - | |
| 520 | + | |
520 | 521 | | |
521 | 522 | | |
| 523 | + | |
| 524 | + | |
| 525 | + | |
522 | 526 | | |
523 | | - | |
| 527 | + | |
524 | 528 | | |
525 | 529 | | |
526 | 530 | | |
| |||
854 | 858 | | |
855 | 859 | | |
856 | 860 | | |
| 861 | + | |
857 | 862 | | |
858 | 863 | | |
859 | 864 | | |
| |||
966 | 971 | | |
967 | 972 | | |
968 | 973 | | |
| 974 | + | |
| 975 | + | |
| 976 | + | |
969 | 977 | | |
970 | 978 | | |
971 | 979 | | |
| |||
0 commit comments