diff options
Diffstat (limited to 'source/globals.c')
-rw-r--r-- | source/globals.c | 68 |
1 files changed, 36 insertions, 32 deletions
diff --git a/source/globals.c b/source/globals.c index 14b8a64..f7cdb85 100644 --- a/source/globals.c +++ b/source/globals.c @@ -69,6 +69,10 @@ uint32_t even_low[4][16]; SCheatData Cheat; +#ifdef LAGFIX +bool finishedFrame = false; +#endif + #ifndef USE_BLARGG_APU SoundStatus so; @@ -103,47 +107,47 @@ uint8_t BitShifts[8][4] = }; uint8_t TileShifts[8][4] = { - {4, 4, 4, 4}, // 0 - {5, 5, 4, 0}, // 1 - {5, 5, 0, 0}, // 2 - {6, 5, 0, 0}, // 3 - {6, 4, 0, 0}, // 4 - {5, 4, 0, 0}, // 5 - {5, 0, 0, 0}, // 6 - {6, 0, 0, 0} // 7 + {4, 4, 4, 4}, /* 0 */ + {5, 5, 4, 0}, /* 1 */ + {5, 5, 0, 0}, /* 2 */ + {6, 5, 0, 0}, /* 3 */ + {6, 4, 0, 0}, /* 4 */ + {5, 4, 0, 0}, /* 5 */ + {5, 0, 0, 0}, /* 6 */ + {6, 0, 0, 0} /* 7 */ }; uint8_t PaletteShifts[8][4] = { - {2, 2, 2, 2}, // 0 - {4, 4, 2, 0}, // 1 - {4, 4, 0, 0}, // 2 - {0, 4, 0, 0}, // 3 - {0, 2, 0, 0}, // 4 - {4, 2, 0, 0}, // 5 - {4, 0, 0, 0}, // 6 - {0, 0, 0, 0} // 7 + {2, 2, 2, 2}, /* 0 */ + {4, 4, 2, 0}, /* 1 */ + {4, 4, 0, 0}, /* 2 */ + {0, 4, 0, 0}, /* 3 */ + {0, 2, 0, 0}, /* 4 */ + {4, 2, 0, 0}, /* 5 */ + {4, 0, 0, 0}, /* 6 */ + {0, 0, 0, 0} /* 7 */ }; uint8_t PaletteMasks[8][4] = { - {7, 7, 7, 7}, // 0 - {7, 7, 7, 0}, // 1 - {7, 7, 0, 0}, // 2 - {0, 7, 0, 0}, // 3 - {0, 7, 0, 0}, // 4 - {7, 7, 0, 0}, // 5 - {7, 0, 0, 0}, // 6 - {0, 0, 0, 0} // 7 + {7, 7, 7, 7}, /* 0 */ + {7, 7, 7, 0}, /* 1 */ + {7, 7, 0, 0}, /* 2 */ + {0, 7, 0, 0}, /* 3 */ + {0, 7, 0, 0}, /* 4 */ + {7, 7, 0, 0}, /* 5 */ + {7, 0, 0, 0}, /* 6 */ + {0, 0, 0, 0} /* 7 */ }; uint8_t Depths[8][4] = { - {TILE_2BIT, TILE_2BIT, TILE_2BIT, TILE_2BIT}, // 0 - {TILE_4BIT, TILE_4BIT, TILE_2BIT, 0}, // 1 - {TILE_4BIT, TILE_4BIT, 0, 0}, // 2 - {TILE_8BIT, TILE_4BIT, 0, 0}, // 3 - {TILE_8BIT, TILE_2BIT, 0, 0}, // 4 - {TILE_4BIT, TILE_2BIT, 0, 0}, // 5 - {TILE_4BIT, 0, 0, 0}, // 6 - {0, 0, 0, 0} // 7 + {TILE_2BIT, TILE_2BIT, TILE_2BIT, TILE_2BIT}, /* 0 */ + {TILE_4BIT, TILE_4BIT, TILE_2BIT, 0}, /* 1 */ + {TILE_4BIT, TILE_4BIT, 0, 0}, /* 2 */ + {TILE_8BIT, TILE_4BIT, 0, 0}, /* 3 */ + {TILE_8BIT, TILE_2BIT, 0, 0}, /* 4 */ + {TILE_4BIT, TILE_2BIT, 0, 0}, /* 5 */ + {TILE_4BIT, 0, 0, 0}, /* 6 */ + {0, 0, 0, 0} /* 7 */ }; uint8_t BGSizes [2] = { |