uxn

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

commit 73177d91feb40bce4e95d2f747ef55c8200164a2
parent ba7e8a9fb4210d0c9c8aa9b8e33e32ac11c963a2
Author: Sigrid Solveig Haflínudóttir <ftrvxmtrx@gmail.com>
Date:   Sun, 26 Dec 2021 07:09:12 +0100

ppu: mark ppu_redraw as weak symbol so it can be overridden; move paletter to the start of Ppu struct (for alignment)

Diffstat:
Msrc/devices/ppu.c | 1+
Msrc/devices/ppu.h | 2+-
2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/devices/ppu.c b/src/devices/ppu.c @@ -77,6 +77,7 @@ ppu_clear(Ppu *p, Layer *layer) layer->changed = 1; } +#pragma weak ppu_redraw void ppu_redraw(Ppu *p, Uint32 *screen) { diff --git a/src/devices/ppu.h b/src/devices/ppu.h @@ -22,8 +22,8 @@ typedef struct Layer { } Layer; typedef struct Ppu { - Uint16 width, height; Uint32 palette[4]; + Uint16 width, height; Layer fg, bg; } Ppu;