aboutsummaryrefslogtreecommitdiffstats
path: root/src/uxn/devices/ppu.h
diff options
context:
space:
mode:
authorBad Diode <bd@badd10de.dev>2021-05-23 14:33:33 +0200
committerBad Diode <bd@badd10de.dev>2021-05-23 14:33:33 +0200
commit27472e8acf860d981425a751a4e92343ccdf387a (patch)
tree1ed9da5f40c52ddfe11977e0d833284c78022b1c /src/uxn/devices/ppu.h
parentb6878ffcd291a64bd1ab463e3da017a195bc2d0f (diff)
downloaduxngba-27472e8acf860d981425a751a4e92343ccdf387a.tar.gz
uxngba-27472e8acf860d981425a751a4e92343ccdf387a.zip
Normalize the fixed int typedefs
Diffstat (limited to 'src/uxn/devices/ppu.h')
-rw-r--r--src/uxn/devices/ppu.h20
1 files changed, 7 insertions, 13 deletions
diff --git a/src/uxn/devices/ppu.h b/src/uxn/devices/ppu.h
index 213dc75..0356b63 100644
--- a/src/uxn/devices/ppu.h
+++ b/src/uxn/devices/ppu.h
@@ -17,20 +17,14 @@ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
17WITH REGARD TO THIS SOFTWARE. 17WITH REGARD TO THIS SOFTWARE.
18*/ 18*/
19 19
20typedef unsigned char Uint8;
21typedef unsigned short Uint16;
22typedef unsigned int Uint32;
23
24typedef struct Ppu { 20typedef struct Ppu {
25 Uint32 *bg, *fg; 21 u32 *bg, *fg;
26 Uint16 hor, ver, pad, width, height; 22 u16 hor, ver, pad, width, height;
27} Ppu; 23} Ppu;
28 24
29int initppu(Ppu *p, Uint8 hor, Uint8 ver, Uint8 pad); 25int initppu(Ppu *p, u8 hor, u8 ver, u8 pad);
30void putcolors(Ppu *p, Uint8 *addr); 26void putcolors(u8 *addr);
31void putpixel(Ppu *p, Uint32 *layer, Uint16 x, Uint16 y, Uint8 color); 27void putpixel(u32 *layer, u16 x, u16 y, u8 color);
32void puticn(Ppu *p, Uint32 *layer, Uint16 x, Uint16 y, Uint8 *sprite, Uint8 color, Uint8 flipx, Uint8 flipy); 28void puticn(u32 *layer, u16 x, u16 y, u8 *sprite, u8 color, u8 flipx, u8 flipy);
33void putchr(Ppu *p, Uint32 *layer, Uint16 x, Uint16 y, Uint8 *sprite, Uint8 color, Uint8 flipx, Uint8 flipy); 29void putchr(u32 *layer, u16 x, u16 y, u8 *sprite, u8 color, u8 flipx, u8 flipy);
34void drawppu(Ppu *p);
35void drawdebugger(Ppu *p, Uint8 *stack, Uint8 ptr);
36#endif // UXNGBA_PPU_H 30#endif // UXNGBA_PPU_H