forked from cafeberry/cafeberry
added some kbm stuff
This commit is contained in:
@@ -324,7 +324,17 @@ rrbool UIBitmapFont::GetGlyphBitmap(S32 glyph,F32 pixel_scale,IggyBitmapCharacte
|
||||
bitmap->top_left_y = -((S32) m_cFontData->getFontData()->m_uiGlyphHeight) * m_cFontData->getFontData()->m_fAscent;
|
||||
|
||||
bitmap->oversample = 0;
|
||||
#ifdef _WINDOWS64
|
||||
{
|
||||
float frac = targetPixelScale - floorf(targetPixelScale);
|
||||
if (frac < 0.0f) frac = 0.0f;
|
||||
if (frac > 1.0f) frac = 1.0f;
|
||||
float distToInt = (frac < 0.5f) ? frac : (1.0f - frac);
|
||||
bitmap->point_sample = (distToInt < 0.03f);
|
||||
}
|
||||
#else
|
||||
bitmap->point_sample = true;
|
||||
#endif
|
||||
|
||||
// 4J-JEV:
|
||||
// pixel_scale == font size chosen in flash.
|
||||
|
||||
Reference in New Issue
Block a user