Great simplification of Main/Spare page flipping

This commit is contained in:
Thomas Bernard
2018-01-22 21:47:44 +01:00
parent 353b494617
commit 5ab93eb7fd
5 changed files with 8 additions and 103 deletions

View File

@@ -362,23 +362,6 @@ void Tilemap_update(void)
}
}
///
/// This exchanges the tilemap settings of the main and spare, it should
/// be called when swapping pages.
void Swap_tilemap(void)
{
//TODO
SWAP_BYTES(Main.tilemap_mode, Spare.tilemap_mode)
{
T_Tile * a;
a=Main.tilemap;
Main.tilemap=Spare.tilemap;
Spare.tilemap=a;
}
SWAP_SHORTS(Main.tilemap_width, Spare.tilemap_width)
SWAP_SHORTS(Main.tilemap_height, Spare.tilemap_height)
}
///
/// Clears all tilemap data and settings
/// Safe to call again.