Skip to content

fix mono bitmaps#147

Open
stevesims wants to merge 1 commit intobreakintoprogram:mainfrom
stevesims:upstream-fix-mono-bitmaps
Open

fix mono bitmaps#147
stevesims wants to merge 1 commit intobreakintoprogram:mainfrom
stevesims:upstream-fix-mono-bitmaps

Conversation

@stevesims
Copy link
Contributor

create monochrome bitmaps using graphics foreground colour

also fixes logic for working out width in bytes of monochrome bitmaps. bitmaps are assumed to have a complete number of bytes per row, and start at the top-most bit. the width given is a pixel width, and does not have to be a multiple of 8. the final byte in a row will have pixels ignored if the width is not a multiple of 8.

@breakintoprogram - big apologies - I made this fix a month back, and it made it into the C8 VDP 2.1.0 release, but it completely passed me by that I had forgotten to raise a PR on Quark for it

create monochrome bitmaps using graphics foreground colour

also fixes logic for working out width in bytes of monochrome bitmaps.  bitmaps are assumed to have a complete number of bytes per row, and start at the top-most bit.  the width given is a pixel width, and does not have to be a multiple of 8.  the final byte in a row will have pixels ignored if the width is not a multiple of 8.
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.

1 participant