uxn

Varvara Ordinator, written in ANSI C(SDL2)
git clone https://git.eamoncaddigan.net/uxn.git
Log | Files | Refs | README | LICENSE

commit 26bc456a1bb3760259174f828d00f3a2ad649a16
parent 867883409ec08b8517d62d37fae806ba3dea6782
Author: Devine Lu Linvega <aliceffekt@gmail.com>
Date:   Sun, 23 Jul 2023 19:32:41 -0700

(screen.c) Blending 00 only clears in accordance to sprite at addr

Diffstat:
Mprojects/software/piano.tal | 2+-
Msrc/devices/screen.c | 2+-
2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/projects/software/piano.tal b/projects/software/piano.tal @@ -307,10 +307,10 @@ JMP2r @update-cursor ( color addr* -- ) [ LIT2 00 -Screen/auto ] DEO + .Screen/addr DEO2 #40 draw-cursor .Mouse/x DEI2 ,draw-cursor/x STR2 .Mouse/y DEI2 ,draw-cursor/y STR2 - .Screen/addr DEO2 @draw-cursor ( color -- ) diff --git a/src/devices/screen.c b/src/devices/screen.c @@ -49,7 +49,7 @@ screen_fill(Uint8 *layer, int x1, int y1, int x2, int y2, int color) static void screen_blit(Uint8 *layer, Uint8 *ram, Uint16 addr, int x1, int y1, int color, int flipx, int flipy, int twobpp) { - int v, h, width = uxn_screen.width, height = uxn_screen.height, opaque = (color % 5) || !color; + int v, h, width = uxn_screen.width, height = uxn_screen.height, opaque = (color % 5); for(v = 0; v < 8; v++) { Uint16 c = ram[(addr + v) & 0xffff] | (twobpp ? (ram[(addr + v + 8) & 0xffff] << 8) : 0); Uint16 y = y1 + (flipy ? 7 - v : v);