Fix Mode4 transparency

This fix exists in TempGBA/ReGBA, thanks to andymcca for finding it
This commit is contained in:
David Guillen Fandos 2023-06-03 11:29:02 +02:00
parent a9376c8603
commit f15d08f1f9
1 changed files with 8 additions and 1 deletions

View File

@ -35,6 +35,13 @@ static void render_scanline_conditional_bitmap(u32 start, u32 end, u16 *scanline
current_pixel = palette[current_pixel]; \
dest_ptr[index] = current_pixel \
#define tile_expand_base_normal_mode4(index) \
if(current_pixel != 0) \
{ \
current_pixel = palette[current_pixel]; \
dest_ptr[index] = current_pixel; \
} \
#define tile_expand_transparent_normal(index) \
tile_expand_base_normal(index) \
@ -2584,7 +2591,7 @@ render_scanline_affine_builder(transparent, alpha);
*dest_ptr = current_pixel \
#define bitmap_render_pixel_mode4(alpha_op) \
tile_expand_base_##alpha_op(0) \
tile_expand_base_##alpha_op##_mode4(0) \
#define bitmap_render_pixel_mode5(alpha_op) \
bitmap_render_pixel_mode3(alpha_op) \