mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-12-01 00:21:43 +00:00
- fixed automap marks placement with custom fonts
Automap rotation wasn't taken into account when drawing marks https://forum.zdoom.org/viewtopic.php?t=63693
This commit is contained in:
parent
0d2a24876b
commit
769be00483
1 changed files with 9 additions and 1 deletions
|
@ -3059,7 +3059,15 @@ void DAutomap::drawMarks ()
|
|||
else
|
||||
{
|
||||
char numstr[2] = { char('0' + i), 0 };
|
||||
screen->DrawText(font, am_markcolor, CXMTOF(markpoints[i].x), CYMTOF(markpoints[i].y), numstr, TAG_DONE);
|
||||
double x = markpoints[i].x;
|
||||
double y = markpoints[i].y;
|
||||
|
||||
if (am_rotate == 1 || (am_rotate == 2 && viewactive))
|
||||
{
|
||||
rotatePoint (&x, &y);
|
||||
}
|
||||
|
||||
screen->DrawText(font, am_markcolor, CXMTOF(x), CYMTOF(y), numstr, TAG_DONE);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue