true 16-bit color... glorious
This commit is contained in:
parent
3dccce8a81
commit
b1e8525c3e
30 changed files with 678 additions and 652 deletions
|
|
@ -168,8 +168,11 @@ void pxl8_transition_render(const pxl8_transition* transition, pxl8_gfx* gfx) {
|
|||
i32 block_size = (i32)(max_block_size * progress);
|
||||
if (block_size < 1) block_size = 1;
|
||||
|
||||
u8* fb = pxl8_gfx_get_framebuffer(gfx);
|
||||
if (!fb) break;
|
||||
pxl8_color_mode mode = pxl8_gfx_get_color_mode(gfx);
|
||||
bool has_fb = (mode == PXL8_COLOR_MODE_HICOLOR)
|
||||
? (pxl8_gfx_get_framebuffer_hicolor(gfx) != NULL)
|
||||
: (pxl8_gfx_get_framebuffer_indexed(gfx) != NULL);
|
||||
if (!has_fb) break;
|
||||
|
||||
for (i32 y = 0; y < height; y += block_size) {
|
||||
for (i32 x = 0; x < width; x += block_size) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue