From f4e5c5e7ab664264fabe4f35630064c8dc892a77 Mon Sep 17 00:00:00 2001 From: zhongjin Date: Tue, 22 Nov 2022 12:11:17 +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 | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/3rdparty/fonts/fnt.cxx b/3rdparty/fonts/fnt.cxx index 7729fb5..9aca71e 100644 --- a/3rdparty/fonts/fnt.cxx +++ b/3rdparty/fonts/fnt.cxx @@ -281,6 +281,9 @@ void fntTexFont::puts ( sgVec3 curpos, float pointsize, float italic, const char while ( *s != '\0' ) { + + unsigned int cc = (unsigned char) *s ; + if (*s == '\n') { curpos[0] = origx ; @@ -288,10 +291,8 @@ void fntTexFont::puts ( sgVec3 curpos, float pointsize, float italic, const char } else - unsigned int cc = (unsigned char) *s ; - - SG_LOG(SG_GUI,SG_ALERT, "low_putch " << cc); + SG_LOG(SG_GUI,SG_ALERT, "lputs->ow_putch " << cc); //low_putch ( curpos, pointsize, italic, *s ) ; low_putch ( curpos, pointsize, italic, cc ) ;