From 551b1d71998433f9a83b577f370332bf7434fa06 Mon Sep 17 00:00:00 2001 From: zhongjin Date: Tue, 22 Nov 2022 12:40:07 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20'3rdparty/fonts/fnt.cxx'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 3rdparty/fonts/fnt.cxx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/3rdparty/fonts/fnt.cxx b/3rdparty/fonts/fnt.cxx index e55ca7d..9d6ead9 100644 --- a/3rdparty/fonts/fnt.cxx +++ b/3rdparty/fonts/fnt.cxx @@ -284,7 +284,7 @@ void fntTexFont::puts ( sgVec3 curpos, float pointsize, float italic, const char while ( *s != '\0' ) { - unsigned int cc = (unsigned char) *s ; + unsigned int cc = (unsigned char) *(s++) ; if (*s == '\n') { @@ -319,7 +319,6 @@ void fntTexFont::puts ( sgVec3 curpos, float pointsize, float italic, const char //low_putch ( curpos, pointsize, italic, *s ) ; low_putch ( curpos, pointsize, italic, cc ) ; - s++ ; } }