From ae20abebdb7b36ca14cd59392adef0a5074ce45f Mon Sep 17 00:00:00 2001 From: aliaspider Date: Fri, 13 Nov 2015 21:45:49 +0100 Subject: buildfix for __OLD_RASTER_FX__ --- src/gfx16.c | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) (limited to 'src/gfx16.c') diff --git a/src/gfx16.c b/src/gfx16.c index 7480a9b..524ef08 100644 --- a/src/gfx16.c +++ b/src/gfx16.c @@ -3241,11 +3241,8 @@ else \ IPPU.PreviousLine = IPPU.CurrentLine; } -#ifdef __OLD_RASTER_FX__ -static void S9xUpdateScreen_delayedRasterFx() // ~30-50ms! (called from FLUSH_REDRAW()) -#else +#ifndef __OLD_RASTER_FX__ void S9xUpdateScreen() // ~30-50ms! (called from FLUSH_REDRAW()) -#endif { int StartY, EndY, CurrentLine, CurrentROp; @@ -3340,9 +3337,9 @@ void S9xUpdateScreen() // ~30-50ms! (called from FLUSH_REDRAW()) PPU.BG[3].OffsetsChanged = 0; } -#ifdef __OLD_RASTER_FX__ +#else // __OLD_RASTER_FX__ -static void S9xUpdateScreen_normalRasterFx() // ~30-50ms! (called from FLUSH_REDRAW()) +void S9xUpdateScreen() // ~30-50ms! (called from FLUSH_REDRAW()) { GFX.StartY = IPPU.PreviousLine; if ((GFX.EndY = IPPU.CurrentLine - 1) >= PPU.ScreenHeight) GFX.EndY = PPU.ScreenHeight - 1; @@ -3396,12 +3393,6 @@ static void S9xUpdateScreen_normalRasterFx() // ~30-50ms! (called from FLUSH_RE PPU.BG[2].OffsetsChanged = 0; PPU.BG[3].OffsetsChanged = 0; } - -void S9xUpdateScreen() -{ - if (snesMenuOptions.delayedRasterFX) S9xUpdateScreen_delayedRasterFx(); - else S9xUpdateScreen_normalRasterFx(); -} #endif // -x- -- cgit v1.2.3