this repo has no description
0
fork

Configure Feed

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

fix bpp2 (#2715)

authored by

Bulby and committed by
GitHub
e3c3bc68 e98d37ac

+4 -3
+4 -3
src/studio/screens/console.c
··· 1853 1853 case 2: 1854 1854 color1 = tic_nearest_color(pal->colors, (tic_rgb*)(img.pixels + i + j * img.width), 4); 1855 1855 color2 = tic_nearest_color(pal->colors, (tic_rgb*)(img.pixels + i + 1 + j * img.width), 4); 1856 - // unsure if it's better to do add or or it together. 1857 - color = (color2 << 2) + color1; 1856 + // adding them together caused issues with squashing??? no idea why this isn't the case 1857 + // for bpp 1 1858 + color = (color2 << 2) | color1; 1858 1859 setSpritePixel(base, x, y, color); 1859 1860 break; 1860 1861 case 1: ··· 1862 1863 color2 = tic_nearest_color(pal->colors, (tic_rgb*)(img.pixels + i + 1 + j * img.width), 2); 1863 1864 color3 = tic_nearest_color(pal->colors, (tic_rgb*)(img.pixels + i + 2 + j * img.width), 2); 1864 1865 color4 = tic_nearest_color(pal->colors, (tic_rgb*)(img.pixels + i + 3 + j * img.width), 2); 1865 - color = (color4 << 3) + (color3 << 2) + (color2 << 1) + color1; 1866 + color = (color4 << 3) | (color3 << 2) | (color2 << 1) | color1; 1866 1867 setSpritePixel(base, x, y, color); 1867 1868 break; 1868 1869 }