mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-09-12 07:53:37 +02:00
lcd fontrenderer: port to new API usage
Origin commit data
------------------
Commit: 754262bbc3
Author: Stefan Seyfried <seife@tuxbox-git.slipkontur.de>
Date: 2014-12-25 (Thu, 25 Dec 2014)
This commit is contained in:
@@ -308,6 +308,11 @@ void LcdFont::RenderString(int x, int y, const int width, const char * text, con
|
||||
pthread_mutex_unlock(&renderer->render_mutex);
|
||||
}
|
||||
|
||||
int LcdFont::getRenderWidth(const std::string &text, const bool utf8_encoded)
|
||||
{
|
||||
return getRenderWidth(text.c_str(), utf8_encoded);
|
||||
};
|
||||
|
||||
int LcdFont::getRenderWidth(const char * text, const bool utf8_encoded)
|
||||
{
|
||||
pthread_mutex_lock(&renderer->render_mutex);
|
||||
|
Reference in New Issue
Block a user