driver/fontrenderer: adding an additional bool to RenderString() seems inappropriate.

This commit is contained in:
martii
2013-07-24 18:00:09 +02:00
committed by svenhoefer
parent 6fca465c7b
commit 2047b51780
2 changed files with 15 additions and 7 deletions

View File

@@ -65,8 +65,14 @@ class Font
};
fontmodifier stylemodifier;
void RenderString(int x, int y, const int width, const char * text, const fb_pixel_t color, const int boxheight = 0, const bool utf8_encoded = false, const bool useFullBg = false);
void RenderString(int x, int y, const int width, const std::string & text, const fb_pixel_t color, const int boxheight = 0, const bool utf8_encoded = false, const bool useFullBg = false);
enum renderflags
{
IS_UTF8 = 1,
FULLBG = 2
};
void RenderString(int x, int y, const int width, const char * text, const fb_pixel_t color, const int boxheight = 0, const unsigned int flags = 0);
void RenderString(int x, int y, const int width, const std::string & text, const fb_pixel_t color, const int boxheight = 0, const unsigned int flags = 0);
int getRenderWidth(const char * text, const bool utf8_encoded = false);
int getRenderWidth(const std::string & text, const bool utf8_encoded = false);