From fdfab987a5e28715043ca3684cf6f02d84bc29c0 Mon Sep 17 00:00:00 2001 From: past-due <30942300+past-due@users.noreply.github.com> Date: Tue, 26 Sep 2023 14:40:16 -0400 Subject: [PATCH] iV_DrawEllipsis: Accept optional `rotation` parameter --- lib/ivis_opengl/textdraw.cpp | 4 ++-- lib/ivis_opengl/textdraw.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/ivis_opengl/textdraw.cpp b/lib/ivis_opengl/textdraw.cpp index ddb3ff0f1e9..cf9096a118f 100644 --- a/lib/ivis_opengl/textdraw.cpp +++ b/lib/ivis_opengl/textdraw.cpp @@ -1256,9 +1256,9 @@ int iV_GetEllipsisWidth(iV_fonts fontID) return iV_Internal_GetEllipsis(fontID).width(); } -void iV_DrawEllipsis(iV_fonts fontID, Vector2f position, PIELIGHT colour) +void iV_DrawEllipsis(iV_fonts fontID, Vector2f position, PIELIGHT colour, float rotation /*= 0.0f*/) { - iV_Internal_GetEllipsis(fontID).render(position, colour); + iV_Internal_GetEllipsis(fontID).render(position, colour, rotation); } unsigned int width_pixelsToPoints(unsigned int widthInPixels) diff --git a/lib/ivis_opengl/textdraw.h b/lib/ivis_opengl/textdraw.h index 12cf4a99b4c..25289a7cef1 100644 --- a/lib/ivis_opengl/textdraw.h +++ b/lib/ivis_opengl/textdraw.h @@ -135,7 +135,7 @@ void iV_TextShutdown(); void iV_font(const char *fontName, const char *fontFace, const char *fontFaceBold); int iV_GetEllipsisWidth(iV_fonts fontID); -void iV_DrawEllipsis(iV_fonts fontID, Vector2f position, PIELIGHT colour); +void iV_DrawEllipsis(iV_fonts fontID, Vector2f position, PIELIGHT colour, float rotation = 0.0f); int iV_GetTextAboveBase(iV_fonts fontID); int iV_GetTextBelowBase(iV_fonts fontID);