Peanut-GB icon indicating copy to clipboard operation
Peanut-GB copied to clipboard

Provide double width 4bpp output to lcd_draw_line

Open ccawley2011 opened this issue 8 months ago • 6 comments

By packing the palette into a single nibble and expanding it when the palette register as is, it's possible to output double-width 4bpp graphics data without much overhead. This is useful on RISC OS for rendering in modes 12 or 27, where the resulting buffer can be copied directly to the screen as-is.

This overlaps with the changes in the glfw_gles2 and sdl2-swrenderer branches, so it should probably be combined with one of them before merging.

ccawley2011 avatar May 30 '24 14:05 ccawley2011