mirror of
https://github.com/melonDS-emu/melonDS.git
synced 2025-06-28 09:59:41 -06:00
fix 4-bit affine sprites
This commit is contained in:
@ -2596,11 +2596,12 @@ void GPU2D::DrawSprite_Rotscale(u32 num, u32 boundwidth, u32 boundheight, u32 wi
|
|||||||
if (spritemode == 1) pixelattr |= 0x80000000;
|
if (spritemode == 1) pixelattr |= 0x80000000;
|
||||||
else pixelattr |= 0x10000000;
|
else pixelattr |= 0x10000000;
|
||||||
|
|
||||||
|
ytilefactor <<= 5;
|
||||||
|
pixelsaddr <<= 5;
|
||||||
|
|
||||||
if (attrib[0] & 0x2000)
|
if (attrib[0] & 0x2000)
|
||||||
{
|
{
|
||||||
// 256-color
|
// 256-color
|
||||||
ytilefactor <<= 5;
|
|
||||||
pixelsaddr <<= 5;
|
|
||||||
|
|
||||||
if (!window)
|
if (!window)
|
||||||
{
|
{
|
||||||
@ -2640,10 +2641,6 @@ void GPU2D::DrawSprite_Rotscale(u32 num, u32 boundwidth, u32 boundheight, u32 wi
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
// 16-color
|
// 16-color
|
||||||
tilenum <<= 5;
|
|
||||||
ytilefactor <<= 5;
|
|
||||||
u32 pixelsaddr = (Num ? 0x06600000 : 0x06400000) + tilenum;
|
|
||||||
|
|
||||||
if (!window)
|
if (!window)
|
||||||
{
|
{
|
||||||
pixelattr |= 0x1000;
|
pixelattr |= 0x1000;
|
||||||
|
Reference in New Issue
Block a user