Fixed error that caused us to repeatedly re-render characters
that had empty bitmaps.
This commit is contained in:
parent
13c39be494
commit
e56b4c9c02
@ -197,7 +197,10 @@ void render_font::char_expand(unicode_char chnum, glyph &gl)
|
||||
// attempt to get the font bitmap; if we fail, set bmwidth to -1
|
||||
gl.bitmap = m_manager.machine().osd().font_get_bitmap(m_osdfont, chnum, gl.width, gl.xoffs, gl.yoffs);
|
||||
if (gl.bitmap == NULL)
|
||||
{
|
||||
gl.bmwidth = -1;
|
||||
return;
|
||||
}
|
||||
|
||||
// populate the bmwidth/bmheight fields
|
||||
gl.bmwidth = gl.bitmap->width;
|
||||
|
Loading…
Reference in New Issue
Block a user