From 8ada6093e7456c833823bb624bb24eb760ea0b14 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Fri, 31 Oct 2014 06:23:31 +0100 Subject: RENDER_BACKGROUND_MODE_7- set ScreenColors pointer directly and get rid of else conditional --- source/gfx.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'source') diff --git a/source/gfx.c b/source/gfx.c index bb9a132..9649b94 100644 --- a/source/gfx.c +++ b/source/gfx.c @@ -2579,7 +2579,7 @@ static void DrawBackground(uint32 BGMode, uint32 bg, uint8 Z1, uint8 Z2) } #define RENDER_BACKGROUND_MODE7(TYPE,FUNC) \ - uint16 *ScreenColors; \ + uint16 *ScreenColors = IPPU.ScreenColors; \ CHECK_SOUND(); \ \ uint8 *VRAM1 = Memory.VRAM + 1; \ @@ -2589,8 +2589,6 @@ static void DrawBackground(uint32 BGMode, uint32 bg, uint8 Z1, uint8 Z2) S9xBuildDirectColourMaps (); \ ScreenColors = DirectColourMaps [0]; \ } \ - else \ - ScreenColors = IPPU.ScreenColors; \ \ int aa, cc; \ int dir; \ -- cgit v1.2.3