Skip to content

Commit

Permalink
remove unused params in renderttfgl
Browse files Browse the repository at this point in the history
  • Loading branch information
no-lex committed Feb 2, 2025
1 parent e1062f0 commit 5eae4bd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/engine/render/renderttf.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ void TTFRenderer::renderttf(const char* message, SDL_Color col, int x, int y, fl

msg = trimstring(msg);

TTFSurface tex = renderttfgl(msg.c_str(), col, x, y, wrap);
TTFSurface tex = renderttfgl(msg.c_str(), col, wrap);
if(tex.tex)
{
float w = tex.w*scale,
Expand Down Expand Up @@ -118,7 +118,7 @@ ivec2 TTFRenderer::ttfsize(const char* message)
return ivec2(x,y);
}

TTFRenderer::TTFSurface TTFRenderer::renderttfgl(const char* message, SDL_Color col, int x, int y, uint wrap) const
TTFRenderer::TTFSurface TTFRenderer::renderttfgl(const char* message, SDL_Color col, uint wrap) const
{
if(!message)
{
Expand Down
2 changes: 1 addition & 1 deletion src/engine/render/renderttf.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ class TTFRenderer
TTF_Font* f; //the current working font
std::map<int, TTF_Font *> fontcache; //different sizes of the font are cached in a map which maps them to their size in pt
const char * path; //the path which the font was originally found, so it can load other font sizes if needed
TTFSurface renderttfgl(const char* message, SDL_Color col, int x, int y, uint wrap = 0) const;
TTFSurface renderttfgl(const char* message, SDL_Color col, uint wrap = 0) const;
std::string trimstring(std::string msg) const; //trims color codes out of a string
};

Expand Down

0 comments on commit 5eae4bd

Please sign in to comment.