Fixed for 'space-at-end-of-string' font rendering crash.

Added missing "blank," to usage printf() under WIN32.
This commit is contained in:
William Kendrick 2004-04-18 06:36:06 +00:00
parent 609a5e8d62
commit e45bcaf84b
2 changed files with 10 additions and 2 deletions

View file

@ -11,6 +11,9 @@ http://www.newbreedsoftware.com/tuxpaint/
* Updated Makefile for easier install.
Mark K. Kim <tuxNO_SOLICITATIONpaint-dev@cbreak.org>
* Fixed crash bug when translated text ends in a space.
Mark K. Kim & John Popplewell
* Vietnamese translation created. (Simple version)
Le Quang Phan <lqphan@hn.vnn.vn>

View file

@ -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 @@ void show_usage(FILE * f, char * prg)
blank, blank, blank,
blank, blank, blank,
blank, blank, blank,
#ifdef WIN32
blank,
#endif
blank);
free(blank);
@ -7469,6 +7472,8 @@ void wordwrap_text(TTF_Font * font, char * str, SDL_Color color,
{
text = TTF_RenderUTF8_Blended(locale_font, utf8_str, color);
if (!text) continue; /* Didn't render anything... */
/* ----------- */
if (text->w > right - left)
{