mirror of
https://gitlab.com/GaryOderNichts/re3-wiiu.git
synced 2024-11-30 13:04:15 +01:00
Scale font shadow
This commit is contained in:
parent
2de3c6d67b
commit
0afb1d9e24
@ -818,13 +818,13 @@ CFont::PrintString(float x, float y, uint32, wchar *start, wchar *end, float spw
|
|||||||
Details.dropShadowPosition = 0;
|
Details.dropShadowPosition = 0;
|
||||||
Details.bIsShadow = true;
|
Details.bIsShadow = true;
|
||||||
if (Details.slant != 0.0f) {
|
if (Details.slant != 0.0f) {
|
||||||
Details.slantRefX += dropShadowPosition;
|
Details.slantRefX += SCREEN_SCALE_X(dropShadowPosition);
|
||||||
Details.slantRefY += dropShadowPosition;
|
Details.slantRefY += SCREEN_SCALE_Y(dropShadowPosition);
|
||||||
PrintString(dropShadowPosition + x, dropShadowPosition + y, Details.anonymous_25, start, end, spwidth);
|
PrintString(SCREEN_SCALE_X(dropShadowPosition) + x, SCREEN_SCALE_Y(dropShadowPosition) + y, Details.anonymous_25, start, end, spwidth);
|
||||||
Details.slantRefX -= dropShadowPosition;
|
Details.slantRefX -= SCREEN_SCALE_X(dropShadowPosition);
|
||||||
Details.slantRefY -= dropShadowPosition;
|
Details.slantRefY -= SCREEN_SCALE_Y(dropShadowPosition);
|
||||||
} else {
|
} else {
|
||||||
PrintString(dropShadowPosition + x, dropShadowPosition + y, Details.anonymous_25, start, end, spwidth);
|
PrintString(SCREEN_SCALE_X(dropShadowPosition) + x, SCREEN_SCALE_Y(dropShadowPosition) + y, Details.anonymous_25, start, end, spwidth);
|
||||||
}
|
}
|
||||||
Details.color = color;
|
Details.color = color;
|
||||||
Details.dropShadowPosition = dropShadowPosition;
|
Details.dropShadowPosition = dropShadowPosition;
|
||||||
|
Loading…
Reference in New Issue
Block a user