From e56b4c9c02b0b02476226b4ae23beab3f75d27f2 Mon Sep 17 00:00:00 2001 From: Aaron Giles Date: Wed, 27 Oct 2010 05:15:12 +0000 Subject: [PATCH] Fixed error that caused us to repeatedly re-render characters that had empty bitmaps. --- src/emu/rendfont.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/emu/rendfont.c b/src/emu/rendfont.c index 884fa4352e9..80afe7ae091 100644 --- a/src/emu/rendfont.c +++ b/src/emu/rendfont.c @@ -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;