Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

grx_context_bit_blt_1bpp only supports left-most pixel in the most-significant byte #6

Open
dlech opened this issue Jul 25, 2016 · 0 comments

Comments

@dlech
Copy link
Member

dlech commented Jul 25, 2016

grx_context_bit_blt_1bpp() only supports the convention of .bmp files where the left-most pixel in the most-significant bit of each byte.

However, file formats such as .xbm have the left-most pixel as the least-significant byte. As a result these are drawn with with each 8 pixel column reversed.

We can either add a parameter to grx_context_bit_blt_1bpp() or create a second function to handle reversal of the bits.

This is probably the most efficient way to reverse the bits since we are primarily targeting 32-bit systems.

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

No branches or pull requests

1 participant