wok diff tuxmath/stuff/SDL_extras.c.patch @ rev 23562
updated python-six (1.10.0 -> 1.14.0)
author | Hans-G?nter Theisgen |
---|---|
date | Tue Apr 07 07:56:52 2020 +0100 (2020-04-07) |
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 Tue Apr 07 07:56:52 2020 +0100 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));