mirror of
https://github.com/glest/glest-source.git
synced 2025-08-28 10:19:55 +02:00
- attempt to fix tomreyn's font issue
This commit is contained in:
@@ -182,7 +182,7 @@ void createGlFontBitmaps(uint32 &base, const string &type, int size, int width,
|
|||||||
|
|
||||||
if(charinfo != NULL) {
|
if(charinfo != NULL) {
|
||||||
//SystemFlags::OutputDebug(SystemFlags::debugSystem,"In [%s::%s Line: %d] type = [%s] charinfo->width = %d\n",__FILE__,__FUNCTION__,__LINE__,type.c_str(),charinfo->width);
|
//SystemFlags::OutputDebug(SystemFlags::debugSystem,"In [%s::%s Line: %d] type = [%s] charinfo->width = %d\n",__FILE__,__FUNCTION__,__LINE__,type.c_str(),charinfo->width);
|
||||||
metrics.setWidth(i, static_cast<float> (charinfo->width));
|
metrics.setWidth(i, static_cast<float> (std::max((short)0,charinfo->width)));
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
//SystemFlags::OutputDebug(SystemFlags::debugSystem,"In [%s::%s Line: %d] type = [%s] using size 6\n",__FILE__,__FUNCTION__,__LINE__,type.c_str());
|
//SystemFlags::OutputDebug(SystemFlags::debugSystem,"In [%s::%s Line: %d] type = [%s] using size 6\n",__FILE__,__FUNCTION__,__LINE__,type.c_str());
|
||||||
|
Reference in New Issue
Block a user