[Tux4kids-commits] r809 - tuxmath/trunk/src
tholy-guest at alioth.debian.org
tholy-guest at alioth.debian.org
Mon Dec 15 16:44:58 UTC 2008
Author: tholy-guest
Date: 2008-12-15 16:44:58 +0000 (Mon, 15 Dec 2008)
New Revision: 809
Modified:
tuxmath/trunk/src/credits.c
Log:
In scroll_text, check to make sure that blank lines are not being passed to gettext.
Modified: tuxmath/trunk/src/credits.c
===================================================================
--- tuxmath/trunk/src/credits.c 2008-12-15 15:09:21 UTC (rev 808)
+++ tuxmath/trunk/src/credits.c 2008-12-15 16:44:58 UTC (rev 809)
@@ -449,7 +449,10 @@
dest.y = subscreen.y + (subscreen.h - scroll * speed);
dest.w = 1;
dest.h = 1;
- draw_text(gettext(text[line]), dest);
+ if (strlen(text[line]) > 0)
+ draw_text(gettext(text[line]), dest);
+ else
+ draw_text(text[line], dest); // draw a blank line
if (scroll * speed >= TTF_FontHeight(default_font) )
More information about the Tux4kids-commits
mailing list