From 769be00483c3e544eac2cd6885aeb44cb4a62047 Mon Sep 17 00:00:00 2001 From: "alexey.lysiuk" Date: Fri, 15 Feb 2019 17:21:59 +0200 Subject: [PATCH] - 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 --- src/am_map.cpp | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/am_map.cpp b/src/am_map.cpp index c3d04320f..e7708ae23 100644 --- a/src/am_map.cpp +++ b/src/am_map.cpp @@ -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); } } }