mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-29 00:11:08 +02:00
use default values for freetype fontcaches (needs testing!)
Origin commit data
------------------
Commit: e6fafadcea
Author: gixxpunk <thomas.harfmann@gmail.com>
Date: 2016-07-07 (Thu, 07 Jul 2016)
Origin message was:
------------------
- use default values for freetype fontcaches (needs testing!)
This commit is contained in:
@@ -2087,7 +2087,7 @@ int Init(int source)
|
||||
return 0;
|
||||
}
|
||||
|
||||
if ((error = FTC_Manager_New(library, 7, 2, 1024*1024, &MyFaceRequester, NULL, &manager)))
|
||||
if ((error = FTC_Manager_New(library, 0, 0, 1024*1024, &MyFaceRequester, NULL, &manager)))
|
||||
{
|
||||
FT_Done_FreeType(library);
|
||||
printf("TuxTxt <FTC_Manager_New: 0x%.2X>\n", error);
|
||||
|
@@ -63,7 +63,7 @@ FBFontRenderClass::FBFontRenderClass(const int xr, const int yr)
|
||||
int maxbytes= 4 *1024*1024;
|
||||
dprintf(DEBUG_INFO, "[FONT] Intializing font cache, using max. %dMB...\n", maxbytes/1024/1024);
|
||||
fflush(stdout);
|
||||
if (FTC_Manager_New(library, 10, 20, maxbytes, myFTC_Face_Requester, this, &cacheManager))
|
||||
if (FTC_Manager_New(library, 0, 0, maxbytes, myFTC_Face_Requester, this, &cacheManager))
|
||||
{
|
||||
dprintf(DEBUG_NORMAL, "[FONT] manager failed!\n");
|
||||
return;
|
||||
|
@@ -69,7 +69,7 @@ void LcdFontRenderClass::InitFontCache()
|
||||
{
|
||||
printf("[LCDFONT] Intializing font cache...");
|
||||
fflush(stdout);
|
||||
if (FTC_Manager_New(library, 3, 0, 0, myFTC_Face_Requester, this, &cacheManager))
|
||||
if (FTC_Manager_New(library, 0, 0, 0, myFTC_Face_Requester, this, &cacheManager))
|
||||
{
|
||||
printf(" manager failed!\n");
|
||||
return;
|
||||
|
Reference in New Issue
Block a user