wok-6.x diff tuxmath/stuff/SDL_extras.c.patch @ rev 14546
firefox-langpack-ru: Up to 17.0.6esr
author | Dominique Corbex <domcox@slitaz.org> |
---|---|
date | Wed May 22 21:57:03 2013 +0200 (2013-05-22) |
parents | |
children |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/tuxmath/stuff/SDL_extras.c.patch Wed May 22 21:57:03 2013 +0200 1.3 @@ -0,0 +1,19 @@ 1.4 +--- tuxmath_w_fonts-1.7.2/src/SDL_extras.c.old Mon Mar 9 10:44:42 2009 1.5 ++++ tuxmath_w_fonts-1.7.2/src/SDL_extras.c Sat Jun 6 18:55:22 2009 1.6 +@@ -987,6 +987,7 @@ 1.7 + /* font in memory once loaded until cleanup. */ 1.8 + static TTF_Font* get_font(int size) 1.9 + { 1.10 ++ static char prev_font_name[FONT_NAME_LENGTH]; 1.11 + if (size < 0) 1.12 + { 1.13 + fprintf(stderr, "Error - requested font size %d is negative\n", size); 1.14 +@@ -1001,7 +1002,7 @@ 1.15 + } 1.16 + 1.17 + /* If the font has changed, we need to wipe out the old ones: */ 1.18 +- if (0 != strncmp(prev_font_name, Opts_FontName(),sizeof(prev_font_name))) 1.19 ++ if (0 != strncmp(prev_font_name, Opts_FontName(), FONT_NAME_LENGTH)) 1.20 + { 1.21 + free_font_list(); 1.22 + strncpy(prev_font_name, Opts_FontName(), sizeof(prev_font_name));