Browse code

ppu: rename draw → drawppu to avoid conflicts on Plan 9

Sigrid Solveig Haflínudóttir authored on 22/04/2021 18:04:06
Showing 3 changed files
... ...
@@ -49,7 +49,7 @@ audio_callback(void *u, Uint8 *stream, int len)
49 49
 void
50 50
 redraw(Uint32 *dst, Uxn *u)
51 51
 {
52
-	draw(&ppu);
52
+	drawppu(&ppu);
53 53
 	if(debug)
54 54
 		drawdebugger(&ppu, u->wst.dat, u->wst.ptr);
55 55
 	SDL_UpdateTexture(gTexture, NULL, dst, ppu.width * sizeof(Uint32));
... ...
@@ -126,7 +126,7 @@ drawdebugger(Ppu *p, Uint8 *stack, Uint8 ptr)
126 126
 }
127 127
 
128 128
 void
129
-draw(Ppu *p)
129
+drawppu(Ppu *p)
130 130
 {
131 131
 	Uint16 x, y;
132 132
 	for(y = 0; y < p->ver; ++y)
... ...
@@ -164,4 +164,4 @@ initppu(Ppu *p, Uint8 hor, Uint8 ver, Uint8 pad)
164 164
 		return 0;
165 165
 	clear(p);
166 166
 	return 1;
167
-}
168 167
\ No newline at end of file
168
+}
... ...
@@ -28,5 +28,5 @@ void putcolors(Ppu *p, Uint8 *addr);
28 28
 void putpixel(Ppu *p, Uint8 *layer, Uint16 x, Uint16 y, Uint8 color);
29 29
 void puticn(Ppu *p, Uint8 *layer, Uint16 x, Uint16 y, Uint8 *sprite, Uint8 color);
30 30
 void putchr(Ppu *p, Uint8 *layer, Uint16 x, Uint16 y, Uint8 *sprite, Uint8 color);
31
-void draw(Ppu *p);
32
-void drawdebugger(Ppu *p, Uint8 *stack, Uint8 ptr);
33 31
\ No newline at end of file
32
+void drawppu(Ppu *p);
33
+void drawdebugger(Ppu *p, Uint8 *stack, Uint8 ptr);