Fixed build warnings for gcc

This commit is contained in:
Robert 2021-10-29 22:33:34 +02:00
parent cabc0ae639
commit a579793bd1
8 changed files with 45 additions and 37 deletions

View file

@ -27,6 +27,20 @@ struct FIFO16
};
};
union OAMEntry
{
struct
{
Byte y;
Byte tile;
Byte attr;
Byte x;
};
DWord raw;
};
struct PPU
{
////////////////////////////////////////
@ -179,18 +193,7 @@ struct PPU
struct FIFO16 loPatternFIFO;
struct FIFO16 hiPatternFIFO;
union
{
struct
{
Byte y;
Byte tile;
Byte attr;
Byte x;
};
DWord raw;
}* oam;
union OAMEntry* oam;
Word x, y;
@ -211,4 +214,4 @@ SDL_Texture* getNameTableTexture(struct PPU* ppu, int index);
SDL_Texture* getScreenTexture(struct PPU* ppu);
SDL_Texture* getRenderedNameTableTexture(struct PPU* ppu, int index);
#endif // _PPU_H_
#endif // _PPU_H_