aboutsummaryrefslogtreecommitdiff
path: root/source/ppu.h
diff options
context:
space:
mode:
authorJoão Silva2017-02-12 01:52:03 +0000
committerJoão Silva2017-02-12 01:52:03 +0000
commit3777d1fcf4232cde426f46b7ee5c374fd949b1b0 (patch)
treee76f38bc1bac83bab19daea51d63ed87236e047e /source/ppu.h
parentb6006bc542f89ad1b7086268f851f0ba880ad6cd (diff)
downloadsnes9x2005-3777d1fcf4232cde426f46b7ee5c374fd949b1b0.tar.gz
snes9x2005-3777d1fcf4232cde426f46b7ee5c374fd949b1b0.tar.bz2
snes9x2005-3777d1fcf4232cde426f46b7ee5c374fd949b1b0.zip
Type fixes. Fixes from snes9x 1.50. Minor changes and optimizations.
Diffstat (limited to 'source/ppu.h')
-rw-r--r--source/ppu.h44
1 files changed, 20 insertions, 24 deletions
diff --git a/source/ppu.h b/source/ppu.h
index 1a83d6f..5101f02 100644
--- a/source/ppu.h
+++ b/source/ppu.h
@@ -18,9 +18,9 @@ extern uint16_t SignExtend [2];
#define PPU_H_BEAM_IRQ_SOURCE (1 << 0)
#define PPU_V_BEAM_IRQ_SOURCE (1 << 1)
-#define GSU_IRQ_SOURCE (1 << 2)
-#define SA1_IRQ_SOURCE (1 << 7)
-#define SA1_DMA_IRQ_SOURCE (1 << 5)
+#define GSU_IRQ_SOURCE (1 << 2)
+#define SA1_DMA_IRQ_SOURCE (1 << 5)
+#define SA1_IRQ_SOURCE (1 << 7)
struct ClipData
{
@@ -31,26 +31,22 @@ struct ClipData
typedef struct
{
- bool ColorsChanged;
- uint8_t HDMA;
- bool HDMAStarted;
- uint8_t MaxBrightness;
- bool LatchedBlanking;
- bool OBJChanged;
- bool RenderThisFrame;
- bool DirectColourMapsNeedRebuild;
- uint32_t FrameCount;
- uint32_t RenderedFramesCount;
- uint32_t DisplayedRenderedFrameCount;
- uint32_t SkippedFrames;
- uint32_t FrameSkip;
- uint8_t* TileCache [3];
- uint8_t* TileCached [3];
-#ifdef CORRECT_VRAM_READS
- uint16_t VRAMReadBuffer;
-#else
- bool FirstVRAMRead;
-#endif
+ bool ColorsChanged;
+ uint8_t HDMA;
+ bool HDMAStarted;
+ uint8_t MaxBrightness;
+ bool LatchedBlanking;
+ bool OBJChanged;
+ bool RenderThisFrame;
+ bool DirectColourMapsNeedRebuild;
+ uint32_t FrameCount;
+ uint32_t RenderedFramesCount;
+ uint32_t DisplayedRenderedFrameCount;
+ uint32_t SkippedFrames;
+ uint32_t FrameSkip;
+ uint8_t* TileCache [3];
+ uint8_t* TileCached [3];
+ bool FirstVRAMRead;
bool DoubleHeightPixels;
bool Interlace;
bool InterlaceSprites;
@@ -176,7 +172,7 @@ typedef struct
bool ClipWindow1Inside [6];
bool ClipWindow2Inside [6];
bool RecomputeClipWindows;
- uint8_t CGFLIPRead;
+ bool CGFLIPRead;
uint16_t OBJNameSelect;
bool Need16x8Mulitply;
uint8_t Joypad3ButtonReadPos;