Skip to content

Commit

Permalink
iV_DrawEllipsis: Accept optional rotation parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
past-due committed Oct 11, 2023
1 parent be9fc1c commit fdfab98
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions lib/ivis_opengl/textdraw.cpp
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion lib/ivis_opengl/textdraw.h
Expand Up @@ -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);
Expand Down

0 comments on commit fdfab98

Please sign in to comment.