From 9126b3c310caedef308b83c449147b455cfc618c Mon Sep 17 00:00:00 2001 From: shashclp Date: Sun, 21 Jan 2007 20:27:45 +0000 Subject: [PATCH] - Fixed extRotBG2 to feed proper values to the window handling --- desmume/src/GPU.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/desmume/src/GPU.c b/desmume/src/GPU.c index 45b34417e..1d313a228 100644 --- a/desmume/src/GPU.c +++ b/desmume/src/GPU.c @@ -995,7 +995,7 @@ INLINE void extRotBG2(GPU * gpu, u8 num, u8 * DST, u16 H, s32 X, s32 Y, s16 PA, y1 = (mapinfo & 0x800) ? 7 - (auxY&7) : (auxY&7); coul = tile[(mapinfo&0x3FF)*64 + x1 + (y1<<3)]; if(coul) - renderline_setFinalColor(gpu,0,num,dst, T1ReadWord(pal, (coul + (mapinfo>>12)*0x100) << 1),i,Y); + renderline_setFinalColor(gpu,0,num,dst, T1ReadWord(pal, (coul + (mapinfo>>12)*0x100) << 1),i,H); }) } @@ -1008,7 +1008,7 @@ INLINE void extRotBG2(GPU * gpu, u8 num, u8 * DST, u16 H, s32 X, s32 Y, s16 PA, { mapinfo = map[auxX + auxY * lg]; if(mapinfo) - renderline_setFinalColor(gpu,0,num,dst, T1ReadWord(pal, mapinfo << 1),i,Y); + renderline_setFinalColor(gpu,0,num,dst, T1ReadWord(pal, mapinfo << 1),i,H); }) } return; @@ -1019,7 +1019,7 @@ INLINE void extRotBG2(GPU * gpu, u8 num, u8 * DST, u16 H, s32 X, s32 Y, s16 PA, { mapinfo = T1ReadWord(map, (auxX + auxY * lg) << 1); if ((mapinfo) && (mapinfo & 0x8000)) - renderline_setFinalColor(gpu,0,num,dst, mapinfo,i,Y); + renderline_setFinalColor(gpu,0,num,dst, mapinfo,i,H); }) } return;