Fixed for 'space-at-end-of-string' font rendering crash.
Added missing "blank," to usage printf() under WIN32.
This commit is contained in:
parent
609a5e8d62
commit
e45bcaf84b
2 changed files with 10 additions and 2 deletions
|
|
@ -11,6 +11,9 @@ http://www.newbreedsoftware.com/tuxpaint/
|
||||||
* Updated Makefile for easier install.
|
* Updated Makefile for easier install.
|
||||||
Mark K. Kim <tuxNO_SOLICITATIONpaint-dev@cbreak.org>
|
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)
|
* Vietnamese translation created. (Simple version)
|
||||||
Le Quang Phan <lqphan@hn.vnn.vn>
|
Le Quang Phan <lqphan@hn.vnn.vn>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -21,12 +21,12 @@
|
||||||
along with this program; if not, write to the Free Software
|
along with this program; if not, write to the Free Software
|
||||||
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
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_VERSION "0.9.14"
|
||||||
#define VER_DATE "2004.04.14"
|
#define VER_DATE "2004.04.17"
|
||||||
|
|
||||||
|
|
||||||
/* #define DEBUG */
|
/* #define DEBUG */
|
||||||
|
|
@ -3770,6 +3770,9 @@ void show_usage(FILE * f, char * prg)
|
||||||
blank, blank, blank,
|
blank, blank, blank,
|
||||||
blank, blank, blank,
|
blank, blank, blank,
|
||||||
blank, blank, blank,
|
blank, blank, blank,
|
||||||
|
#ifdef WIN32
|
||||||
|
blank,
|
||||||
|
#endif
|
||||||
blank);
|
blank);
|
||||||
|
|
||||||
free(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);
|
text = TTF_RenderUTF8_Blended(locale_font, utf8_str, color);
|
||||||
|
|
||||||
|
if (!text) continue; /* Didn't render anything... */
|
||||||
|
|
||||||
/* ----------- */
|
/* ----------- */
|
||||||
if (text->w > right - left)
|
if (text->w > right - left)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue