missed in previous

This commit is contained in:
jasper 2015-12-27 17:56:59 +00:00
parent bc424771b1
commit fc794ebee2

View File

@ -0,0 +1,24 @@
$OpenBSD: patch-src_game_client_gameclient_cpp,v 1.1 2015/12/27 17:56:59 jasper Exp $
Don't require a local copy of DejavuSans.ttf.
--- src/game/client/gameclient.cpp.orig Wed May 1 13:47:39 2013
+++ src/game/client/gameclient.cpp Thu May 8 16:59:57 2014
@@ -240,7 +240,7 @@ void CGameClient::OnInit()
// load default font
static CFont *pDefaultFont = 0;
char aFilename[512];
- IOHANDLE File = Storage()->OpenFile("fonts/DejaVuSans.ttf", IOFLAG_READ, IStorage::TYPE_ALL, aFilename, sizeof(aFilename));
+ IOHANDLE File = Storage()->OpenFile("${X11BASE}/lib/X11/fonts/TTF/DejaVuSans.ttf", IOFLAG_READ, IStorage::TYPE_ALL, aFilename, sizeof(aFilename));
if(File)
{
io_close(File);
@@ -248,7 +248,7 @@ void CGameClient::OnInit()
TextRender()->SetDefaultFont(pDefaultFont);
}
if(!pDefaultFont)
- Console()->Print(IConsole::OUTPUT_LEVEL_STANDARD, "gameclient", "failed to load font. filename='fonts/DejaVuSans.ttf'");
+ Console()->Print(IConsole::OUTPUT_LEVEL_STANDARD, "gameclient", "failed to load font. filename='DejaVuSans.ttf'");
// init all components
for(int i = m_All.m_Num-1; i >= 0; --i)