Skip to content

Commit fbd1754

Browse files
committed
Fix scaled text not inverting correctly
1 parent d227067 commit fbd1754

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arm9/source/graphics/graphics.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -382,7 +382,7 @@ void printTextTintedScaled(std::u16string text, double scaleX, double scaleY, u
382382
if(!invert) (top ? BG_GFX : BG_GFX_SUB)[((u16)(y/scaleY)+yPos)*256+((u16)(i/scaleX)+x+xPos)] = color & font[currentCharIndex+i];
383383
else {
384384
if(font[currentCharIndex+i] == 0xFBDE) // Light -> dark
385-
(top ? BG_GFX : BG_GFX_SUB)[((u16)(y/scaleY)+yPos)*256+((u16)(i/scaleX)+x+xPos)] = color & 0xC631;
385+
(top ? BG_GFX : BG_GFX_SUB)[((u16)(y/scaleY)+yPos)*256+((u16)(i/scaleX)+x+xPos)] = color & 0xBDEF;
386386
else // Dark -> light
387387
(top ? BG_GFX : BG_GFX_SUB)[((u16)(y/scaleY)+yPos)*256+((u16)(i/scaleX)+x+xPos)] = color & 0xFBDE;
388388
}

0 commit comments

Comments
 (0)