Fixed build warnings for gcc
This commit is contained in:
parent
cabc0ae639
commit
a579793bd1
8 changed files with 45 additions and 37 deletions
|
@ -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_
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue