Commit 4b2ef3b9 authored by Sreyas Kurumanghat's avatar Sreyas Kurumanghat
parent 97830c1a
......@@ -325,7 +325,10 @@ SDL_Surface* Blend(SDL_Surface *S1,SDL_Surface *S2,float gamma)
SDLPango_Context *context = NULL;
void init_SDLPango_Context()
{
context = SDLPango_CreateContext_GivenFontDesc(settings.theme_font_name);
if((context = SDLPango_CreateContext_GivenFontDesc(settings.theme_font_name))==NULL)
context = SDLPango_CreateContext();
SDLPango_SetBaseDirection(context, SDLPANGO_DIRECTION_LTR);
SDLPango_SetDpi(context, 125.0, 125.0);
}
void free_SDLPango_Context()
{
......
......@@ -132,7 +132,9 @@ int main(int argc, char *argv[])
LibInit(lib_flags); /* calls SDL_Init(), TTF_Init(), some other settings */
GraphicsInit(); /* calls SDL_SetVideoMode(), a few others */
#ifdef HAVE_LIBSDL_PANGO
void init_SDLPango_Context();
#endif
if (settings.sys_sound)
{
Mix_VolumeMusic(settings.mus_volume);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment