From 568e0548e5eb39015a3aae86bcdb356486182c04 Mon Sep 17 00:00:00 2001 From: zeromus Date: Mon, 1 Feb 2010 18:47:35 +0000 Subject: [PATCH] gpu: fix broken bg regression --- desmume/src/GPU.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/desmume/src/GPU.cpp b/desmume/src/GPU.cpp index 82fe1278c..1912b2d8d 100644 --- a/desmume/src/GPU.cpp +++ b/desmume/src/GPU.cpp @@ -1009,9 +1009,7 @@ template INLINE void renderline_textBG(GPU * gpu, u16 XBG, u16 YBG, mapinfo = map + (tmp & 31) * 2; if(tmp > 31) mapinfo += 32*32*2; tileentry.val = T1ReadWord(MMU_gpu_map(mapinfo), 0); - - tilePal = pal + ((tileentry.bits.Palette<<8) & extPalMask); - + tilePal = pal + ((tileentry.bits.Palette<<9)&extPalMask); line = (u8*)MMU_gpu_map(tile + (tileentry.bits.TileNum*0x40) + ((tileentry.bits.VFlip) ? (7*8)-yoff : yoff)); if(tileentry.bits.HFlip)