diff --git a/src/devices/ppu.c b/src/devices/ppu.c index 9dae9d9..1697c8f 100644 --- 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 index 39848f6..9e5f217 100644 --- 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;