From 03348aad9460c12407c33f63646a9d81f1461931 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Mon, 8 Aug 2016 03:55:28 +0200 Subject: Cleanups --- src/gfx.c | 15 --------------- 1 file changed, 15 deletions(-) (limited to 'src/gfx.c') diff --git a/src/gfx.c b/src/gfx.c index 156f0c2..f9d8df5 100644 --- a/src/gfx.c +++ b/src/gfx.c @@ -809,8 +809,6 @@ void DrawOBJS(bool8_32 OnMain, uint8 D) uint32 O; uint32 BaseTile, Tile; - CHECK_SOUND(); - BG.BitShift = 4; BG.TileShift = 5; BG.TileAddress = PPU.OBJNameBase; @@ -957,8 +955,6 @@ void DrawOBJS(bool8_32 OnMain, uint8 D) void DrawBackgroundMosaic(uint32 BGMode, uint32 bg, uint8 Z1, uint8 Z2) { - CHECK_SOUND(); - uint32 Tile; uint16* SC0; uint16* SC1; @@ -1183,8 +1179,6 @@ void DrawBackgroundMosaic(uint32 BGMode, uint32 bg, uint8 Z1, uint8 Z2) void DrawBackgroundOffset(uint32 BGMode, uint32 bg, uint8 Z1, uint8 Z2) { - CHECK_SOUND(); - uint32 Tile; uint16* SC0; uint16* SC1; @@ -1459,8 +1453,6 @@ void DrawBackgroundOffset(uint32 BGMode, uint32 bg, uint8 Z1, uint8 Z2) void DrawBackgroundMode5(uint32 BGMODE, uint32 bg, uint8 Z1, uint8 Z2) { - CHECK_SOUND(); - uint8 depths [2] = {Z1, Z2}; uint32 Tile; @@ -2111,7 +2103,6 @@ static inline void DrawBackground(uint32 BGMode, uint32 bg, uint8 Z1, uint8 Z2) DrawBackgroundMode5(BGMode, bg, Z1, Z2); return; } - CHECK_SOUND(); if (BGMode == 0) BG.StartPalette = bg << 5; @@ -2126,8 +2117,6 @@ static inline void DrawBackground(uint32 BGMode, uint32 bg, uint8 Z1, uint8 Z2) } #define RENDER_BACKGROUND_MODE7(FUNC) \ - CHECK_SOUND(); \ -\ uint8 *VRAM1 = Memory.VRAM + 1; \ if (GFX.r2130 & 1) \ { \ @@ -2263,8 +2252,6 @@ static inline void DrawBackground(uint32 BGMode, uint32 bg, uint8 Z1, uint8 Z2) } #define RENDER_BACKGROUND_MODE7ADDSUB(DEPTH, FUNC) \ - CHECK_SOUND(); \ -\ uint8 *VRAM1 = Memory.VRAM + 1; \ if (GFX.r2130 & 1) \ { \ @@ -2405,8 +2392,6 @@ static inline void DrawBackground(uint32 BGMode, uint32 bg, uint8 Z1, uint8 Z2) } #define RENDER_BACKGROUND_MODE7PRIO(FUNC) \ - CHECK_SOUND(); \ -\ uint8 *VRAM1 = Memory.VRAM + 1; \ if (GFX.r2130 & 1) \ { \ -- cgit v1.2.3