[Tux4kids-commits] r662 - tuxtype/trunk/src
sreyas-guest at alioth.debian.org
sreyas-guest at alioth.debian.org
Thu Aug 21 12:12:09 UTC 2008
Author: sreyas-guest
Date: 2008-08-21 12:12:08 +0000 (Thu, 21 Aug 2008)
New Revision: 662
Modified:
tuxtype/trunk/src/SDL_extras.c
tuxtype/trunk/src/main.c
Log:
Modified: tuxtype/trunk/src/SDL_extras.c
===================================================================
--- tuxtype/trunk/src/SDL_extras.c 2008-08-20 21:36:50 UTC (rev 661)
+++ tuxtype/trunk/src/SDL_extras.c 2008-08-21 12:12:08 UTC (rev 662)
@@ -325,7 +325,10 @@
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()
{
Modified: tuxtype/trunk/src/main.c
===================================================================
--- tuxtype/trunk/src/main.c 2008-08-20 21:36:50 UTC (rev 661)
+++ tuxtype/trunk/src/main.c 2008-08-21 12:12:08 UTC (rev 662)
@@ -132,7 +132,9 @@
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);
More information about the Tux4kids-commits
mailing list