this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

fix 2 bpp import (#2464)

* fix 2 bpp import

* detect scale better

both bpp1 and bpp2 are tested and fully function

authored by

Bulby and committed by
GitHub
eaaa6360 8c55996e

+11 -1
+11 -1
src/studio/screens/console.c
··· 1767 1767 { 1768 1768 const tic_palette* pal = getPalette(console, params.bank, params.vbank); 1769 1769 1770 - s32 bpp_scale = 5 - bpp; 1770 + s32 bpp_scale = 1; 1771 + switch (bpp) { 1772 + case 1: 1773 + bpp_scale = 4; 1774 + break; 1775 + case 2: 1776 + bpp_scale = 2; 1777 + break; 1778 + default: 1779 + break; 1780 + } 1771 1781 u32 color1, color2, color3, color4, color; 1772 1782 1773 1783 for(s32 j = 0, y = params.y, h = y + (params.h ? params.h : img.height); y < h; ++y, ++j)