mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-09-12 07:53:37 +02:00
add hd51; mostly ported from TangoCash's neutrino-mp
Origin commit data
------------------
Commit: 09ae4c3a51
Author: vanhofen <vanhofen@gmx.de>
Date: 2017-10-05 (Thu, 05 Oct 2017)
Origin message was:
------------------
- add hd51; mostly ported from TangoCash's neutrino-mp
This commit is contained in:
@@ -73,7 +73,7 @@ void LcdFontRenderClass::InitFontCache()
|
||||
{
|
||||
printf("[LCDFONT] Intializing font cache...");
|
||||
fflush(stdout);
|
||||
if (FTC_Manager_New(library, 0, 0, 0, myFTC_Face_Requester, this, &cacheManager))
|
||||
if (FTC_Manager_New(library, 3, 0, 0, myFTC_Face_Requester, this, &cacheManager))
|
||||
{
|
||||
printf(" manager failed!\n");
|
||||
return;
|
||||
@@ -321,11 +321,6 @@ 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