diff options
author | twinaphex | 2014-10-31 06:23:31 +0100 |
---|---|---|
committer | twinaphex | 2014-10-31 06:23:31 +0100 |
commit | 8ada6093e7456c833823bb624bb24eb760ea0b14 (patch) | |
tree | c0820ba5ba00d86e74c56d4d584ffeff26c67a0b | |
parent | f838ce071358e65162284e15e53124225718b316 (diff) | |
download | snesemu-8ada6093e7456c833823bb624bb24eb760ea0b14.tar.gz snesemu-8ada6093e7456c833823bb624bb24eb760ea0b14.tar.bz2 snesemu-8ada6093e7456c833823bb624bb24eb760ea0b14.zip |
RENDER_BACKGROUND_MODE_7- set ScreenColors pointer directly
and get rid of else conditional
-rw-r--r-- | source/gfx.c | 4 |
1 files changed, 1 insertions, 3 deletions
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; \ |