Skip to content

Conversation

@different55
Copy link

On my laptop running vanilla Debian Sid, my framebuffer uses 32 bits per pixel,
but the 4th byte isn't used for alpha. The alpha channel's length and offset
are both 0.

That throws off the PixelFormat.Stride function, making it think that the
framebuffer format is only 24bpp. So I changed PixelFormat to have an
addition Depth field that gets set from fb_var_screeninfo.bits_per_pixel and
all's well now.

different55 and others added 3 commits January 25, 2021 00:31
…sistency.

On my laptop running vanilla Debian Sid, my framebuffer uses 32 bits per pixel,
but the 4th byte isn't used for alpha. The alpha channel's length and offset
are both 0.

That throws off the PixelFormat.Stride function, making it think that the
framebuffer format is only 24bpp. So I changed PixelFormat to have an
addition Depth field that gets set from fb_var_screeninfo.bits_per_pixel and
all's well now.
@different55
Copy link
Author

Attempted to update the Stride calculation with the rpi-friendly line, but not entirely sure what's going on with the rpi so not entirely sure if this is the right move for it or not.

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