Update of /cvsroot/tuxpaint/tuxpaint/src
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv1461/src
Modified Files:
tuxpaint.c
Log Message:
Fixed for 'space-at-end-of-string' font rendering crash.
Added missing "blank," to usage printf() under WIN32.
Index: tuxpaint.c
===================================================================
RCS file: /cvsroot/tuxpaint/tuxpaint/src/tuxpaint.c,v
retrieving revision 1.102
retrieving revision 1.103
diff -u -d -r1.102 -r1.103
--- tuxpaint.c 14 Apr 2004 20:14:53 -0000 1.102
+++ tuxpaint.c 18 Apr 2004 06:36:07 -0000 1.103
@@ -21,12 +21,12 @@
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
- June 14, 2002 - April 14, 2004
+ June 14, 2002 - April 17, 2004
*/
#define VER_VERSION "0.9.14"
-#define VER_DATE "2004.04.14"
+#define VER_DATE "2004.04.17"
/* #define DEBUG */
@@ -3770,6 +3770,9 @@
blank, blank, blank,
blank, blank, blank,
blank, blank, blank,
+#ifdef WIN32
+ blank,
+#endif
blank);
free(blank);
@@ -7469,6 +7472,8 @@
{
text = TTF_RenderUTF8_Blended(locale_font, utf8_str, color);
+ if (!text) continue; /* Didn't render anything... */
+
/* ----------- */
if (text->w > right - left)
{
_______________________________________________
Tuxpaint-commits mailing list
[EMAIL PROTECTED]
http://tux4kids.net/mailman/listinfo/tuxpaint-commits