Skip to content
Snippets Groups Projects
Commit aa1fa9e1 authored by pippin's avatar pippin
Browse files

bsp: fix 1bit and 2bit blitout

They do not have pixel-scaling or osd, but the basic blitout works.
parent ceee82b0
Branches
Tags
No related merge requests found
......@@ -842,12 +842,12 @@ static void flow3r_bsp_prep_blit(flow3r_bsp_gc9a01_blit_t *blit,
blit->fb += (end_off * 2);
break;
case 1:
for (unsigned int i = 0; i < pix_count; i++)
for (unsigned int i = start_off; i < end_off; i++)
temp_blit[o++] =
blit->pal_16[(fb[i / 8] >> ((i & 7))) & 0x1];
break;
case 2:
for (unsigned int i = 0; i < pix_count; i++)
for (unsigned int i = start_off; i < end_off; i++)
temp_blit[o++] =
blit->pal_16[(fb[i / 4] >> ((i & 3) * 2)) & 0x3];
break;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment