Skip to content

Commit

Permalink
better (=less confusing) paper color selected for transparent pixels
Browse files Browse the repository at this point in the history
  • Loading branch information
arttu76 committed Dec 3, 2023
1 parent aed48b6 commit 4b4c31b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/Screen.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ export const Screen = () => {
if (x % 8 === 0 && y % 8 === 0) {
setSpectrumMemoryAttribute(win[Keys.spectrumMemoryAttribute], x, y, {
ink: 0,
paper: bg === -1 ? 7 : bg,
paper: bg === -1 ? getBackgroundValue(x, y) : bg,
bright: false
});
}
Expand All @@ -195,7 +195,7 @@ export const Screen = () => {
? getDefaultColor()
: attribute || {
ink: 0,
paper: bg === -1 ? 0 : bg,
paper: bg === -1 ? 7 : bg,
bright: false
};

Expand Down

0 comments on commit 4b4c31b

Please sign in to comment.