From 0db6f293150c4cb90b386743efabaf2bbf06326e Mon Sep 17 00:00:00 2001 From: shashclp Date: Fri, 9 Feb 2007 07:10:12 +0000 Subject: [PATCH] - Fixed regression in graphics on "Bubble Bobble Revolution", and probably others using 8bit rotated tiled backgrounds. --- desmume/src/GPU.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/desmume/src/GPU.c b/desmume/src/GPU.c index 7b7599484..9150e8f50 100644 --- a/desmume/src/GPU.c +++ b/desmume/src/GPU.c @@ -869,7 +869,7 @@ void rot_tiled_8bit_entry(GPU * gpu, int num, s32 auxX, s32 auxY, int lg, u8 * d u8 palette_entry; u16 tileindex, x, y, color; - tileindex = map[(auxX + auxY * lg)>>3]; + tileindex = map[(auxX>>3) + (auxY>>3) * (lg>>3)]; x = (auxX&7); y = (auxY&7); palette_entry = tile[(tileindex<<6)+(y<<3)+x];