VKEYBD: Support RGB332 backing surface
This is efficient on rs90
This commit is contained in:
parent
2149d3814b
commit
96cbe69d1e
1 changed files with 3 additions and 1 deletions
|
@ -74,7 +74,9 @@ static void blit(Graphics::Surface *surf_dst, Graphics::Surface *surf_src, int16
|
|||
if (surf_dst->format.bytesPerPixel != surf_src->format.bytesPerPixel)
|
||||
return;
|
||||
|
||||
if (surf_dst->format.bytesPerPixel == 2)
|
||||
if (surf_dst->format.bytesPerPixel == 1)
|
||||
blitImplementation<uint8>(surf_dst, surf_src, x, y, transparent);
|
||||
else if (surf_dst->format.bytesPerPixel == 2)
|
||||
blitImplementation<uint16>(surf_dst, surf_src, x, y, transparent);
|
||||
else if (surf_dst->format.bytesPerPixel == 4)
|
||||
blitImplementation<uint32>(surf_dst, surf_src, x, y, transparent);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue