From 9c3536bca8589659a3a89b59c414932911968fc2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sigrid=20Solveig=20Hafl=C3=ADnud=C3=B3ttir?= Date: Thu, 22 Apr 2021 18:04:06 +0000 Subject: [PATCH] =?UTF-8?q?ppu:=20rename=20draw=20=E2=86=92=20drawppu=20to?= =?UTF-8?q?=20avoid=20conflicts=20on=20Plan=209?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/emulator.c | 2 +- src/ppu.c | 4 ++-- src/ppu.h | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/emulator.c b/src/emulator.c index b895d5f..f49b3e3 100644 --- a/src/emulator.c +++ b/src/emulator.c @@ -49,7 +49,7 @@ audio_callback(void *u, Uint8 *stream, int len) void redraw(Uint32 *dst, Uxn *u) { - draw(&ppu); + drawppu(&ppu); if(debug) drawdebugger(&ppu, u->wst.dat, u->wst.ptr); SDL_UpdateTexture(gTexture, NULL, dst, ppu.width * sizeof(Uint32)); diff --git a/src/ppu.c b/src/ppu.c index 72d67e3..183b4a9 100644 --- a/src/ppu.c +++ b/src/ppu.c @@ -126,7 +126,7 @@ drawdebugger(Ppu *p, Uint8 *stack, Uint8 ptr) } void -draw(Ppu *p) +drawppu(Ppu *p) { Uint16 x, y; for(y = 0; y < p->ver; ++y) @@ -164,4 +164,4 @@ initppu(Ppu *p, Uint8 hor, Uint8 ver, Uint8 pad) return 0; clear(p); return 1; -} \ No newline at end of file +} diff --git a/src/ppu.h b/src/ppu.h index 21d5a30..4d257e6 100644 --- a/src/ppu.h +++ b/src/ppu.h @@ -28,5 +28,5 @@ void putcolors(Ppu *p, Uint8 *addr); void putpixel(Ppu *p, Uint8 *layer, Uint16 x, Uint16 y, Uint8 color); void puticn(Ppu *p, Uint8 *layer, Uint16 x, Uint16 y, Uint8 *sprite, Uint8 color); void putchr(Ppu *p, Uint8 *layer, Uint16 x, Uint16 y, Uint8 *sprite, Uint8 color); -void draw(Ppu *p); -void drawdebugger(Ppu *p, Uint8 *stack, Uint8 ptr); \ No newline at end of file +void drawppu(Ppu *p); +void drawdebugger(Ppu *p, Uint8 *stack, Uint8 ptr);