更新 '3rdparty/fonts/fnt.cxx'
This commit is contained in:
parent
ab1208363b
commit
a728305573
6
3rdparty/fonts/fnt.cxx
vendored
6
3rdparty/fonts/fnt.cxx
vendored
@ -190,7 +190,7 @@ void fntTexFont::getBBox ( const char *s,
|
||||
if ( (cc & 0XE0) == 0XE0) {
|
||||
SG_LOG(SG_GUI,SG_ALERT, "UTF8 cc=" << cc);
|
||||
|
||||
int x = cc << 4;
|
||||
int x = (cc & 0X0F) << 4;
|
||||
|
||||
SG_LOG(SG_GUI,SG_ALERT, "UTF8 cc<<4 " << x);
|
||||
|
||||
@ -199,9 +199,9 @@ void fntTexFont::getBBox ( const char *s,
|
||||
|
||||
SG_LOG(SG_GUI,SG_ALERT, "UTF81 cc=" << cc);
|
||||
|
||||
x= x + ((cc>>2) & 0x0F);
|
||||
x= x + ((cc & 0x3C) >>2 ) ;
|
||||
|
||||
int y = (cc & 0x03) * 0X3F;
|
||||
int y = (cc & 0x03) << 6 ;
|
||||
|
||||
cc = (unsigned char) *(s++) ;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user