Skip to content

fix(quickdraw): make indexed XOR reversible - #564

Open
benletchford wants to merge 1 commit into
masterfrom
dev/indexed-pixmap-xor
Open

fix(quickdraw): make indexed XOR reversible#564
benletchford wants to merge 1 commit into
masterfrom
dev/indexed-pixmap-xor

Conversation

@benletchford

Copy link
Copy Markdown
Owner

Closes #563.

Invert indexed CopyBits destinations at their packed pixel depth for srcXor and notSrcXor instead of mapping an RGB complement back through the destination palette. This preserves exact 2-, 4-, and 8-bit indices and makes repeated XOR drawing reversible.

Validation:

  • cargo fmt --check
  • cargo test --lib (2,950 passed, 3 ignored)
  • cargo clippy --all-targets (passes with existing warnings)

@benletchford
benletchford marked this pull request as ready for review August 13, 2026 16:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Shared-palette indexed CopyBits leaves Boolean transfer artifacts

1 participant