wok diff tuxmath/stuff/SDL_extras.c.patch @ rev 17834
Add: get-sublime-text-3.
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Mon Mar 23 04:43:23 2015 +0200 (2015-03-23) |
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 Mon Mar 23 04:43:23 2015 +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));