ppu: mark ppu_redraw as weak symbol so it can be overridden; move paletter to the start of Ppu struct (for alignment)
This commit is contained in:
parent
ba7e8a9fb4
commit
73177d91fe
|
@ -77,6 +77,7 @@ ppu_clear(Ppu *p, Layer *layer)
|
|||
layer->changed = 1;
|
||||
}
|
||||
|
||||
#pragma weak ppu_redraw
|
||||
void
|
||||
ppu_redraw(Ppu *p, Uint32 *screen)
|
||||
{
|
||||
|
|
|
@ -22,8 +22,8 @@ typedef struct Layer {
|
|||
} Layer;
|
||||
|
||||
typedef struct Ppu {
|
||||
Uint16 width, height;
|
||||
Uint32 palette[4];
|
||||
Uint16 width, height;
|
||||
Layer fg, bg;
|
||||
} Ppu;
|
||||
|
||||
|
|
Loading…
Reference in New Issue