diff options
| author | 2010-10-27 05:15:12 +0000 | |
|---|---|---|
| committer | 2010-10-27 05:15:12 +0000 | |
| commit | e56b4c9c02b0b02476226b4ae23beab3f75d27f2 (patch) | |
| tree | 057bed24505dd88e9b17f5902592fc7e6139bfe9 /src | |
| parent | 13c39be4947cdd20ed3ed93ca9bf81149709b804 (diff) | |
Fixed error that caused us to repeatedly re-render characters
that had empty bitmaps.
Diffstat (limited to 'src')
| -rw-r--r-- | src/emu/rendfont.c | 3 |
1 files changed, 3 insertions, 0 deletions
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; |
