~rabbits/uxn-playdate

19ed7ffaccc6edfdddca0f3742602de4054355de — Devine Lu Linvega 13 days ago f1c32d2
Returned blending lut
1 files changed, 7 insertions(+), 1 deletions(-)

M src/devices/ppu.c
M src/devices/ppu.c => src/devices/ppu.c +7 -1
@@ 11,6 11,12 @@ WITH REGARD TO THIS SOFTWARE.

#include "ppu.h"

static uint8_t blending[4][16] = {
	{0, 0, 0, 0, 1, 0, 1, 1, 2, 2, 0, 2, 3, 3, 3, 0},
	{0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3},
	{1, 2, 3, 1, 1, 2, 3, 1, 1, 2, 3, 1, 1, 2, 3, 1},
	{2, 3, 1, 2, 2, 3, 1, 2, 2, 3, 1, 2, 2, 3, 1, 2}};

static inline void
render(Ppu *p, int offset, int count)
{


@@ 64,7 70,7 @@ screen_blit(Ppu *p, uint8_t fg, uint16_t x, uint16_t y, uint8_t *sprite, uint8_t
					fg,
					x + (flipx ? 7 - h : h),
					y + (flipy ? 7 - v : v),
					color * ch);
					blending[ch][color]);
		}
	}
}