- Copyright update

- Fixed "Feel the Magic" and, partially, "Megaman ZX", but still extended bg rotation seem to feed bad coords to the window handling
This commit is contained in:
shashclp 2007-01-21 19:54:36 +00:00
parent c698d8062b
commit d07811e483
1 changed files with 4 additions and 3 deletions

View File

@ -3,6 +3,7 @@
yopyop156.ifrance.com yopyop156.ifrance.com
Copyright (C) 2006 Theo Berkau Copyright (C) 2006 Theo Berkau
Copyright (C) 2007 shash
This file is part of DeSmuME This file is part of DeSmuME
@ -994,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); y1 = (mapinfo & 0x800) ? 7 - (auxY&7) : (auxY&7);
coul = tile[(mapinfo&0x3FF)*64 + x1 + (y1<<3)]; coul = tile[(mapinfo&0x3FF)*64 + x1 + (y1<<3)];
if(coul) 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),auxX>>3,auxY>>3);
}) })
} }
@ -1007,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]; mapinfo = map[auxX + auxY * lg];
if(mapinfo) if(mapinfo)
renderline_setFinalColor(gpu,0,num,dst, T1ReadWord(pal, mapinfo << 1),i,Y); renderline_setFinalColor(gpu,0,num,dst, T1ReadWord(pal, mapinfo << 1),auxX,auxY);
}) })
} }
return; return;
@ -1018,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); mapinfo = T1ReadWord(map, (auxX + auxY * lg) << 1);
if ((mapinfo) && (mapinfo & 0x8000)) if ((mapinfo) && (mapinfo & 0x8000))
renderline_setFinalColor(gpu,0,num,dst, mapinfo,i,Y); renderline_setFinalColor(gpu,0,num,dst, mapinfo,auxX,auxY);
}) })
} }
return; return;