From 4facaf6c24e53a17be232c5c3cab31ecca2d0335 Mon Sep 17 00:00:00 2001 From: mahlemiut Date: Sat, 19 Dec 2015 21:35:34 +1300 Subject: Stop internal debugger windows from drawing space characters, speeds rendering up quite a bit. --- src/osd/modules/debugger/debugint.cpp | 24 +++++++++++------------- 1 file changed, 11 insertions(+), 13 deletions(-) (limited to 'src/osd/modules/debugger/debugint.cpp') diff --git a/src/osd/modules/debugger/debugint.cpp b/src/osd/modules/debugger/debugint.cpp index a9f77f79422..009d4db9f0c 100644 --- a/src/osd/modules/debugger/debugint.cpp +++ b/src/osd/modules/debugger/debugint.cpp @@ -757,20 +757,18 @@ static void dview_draw(DView *dv) UINT16 s = ' '; unsigned char v = viewdata->byte; -// if (v != ' ') - { - if(v < 128) { - s = v; - } else { - s = 0xc0 | (v>>6); - s |= (0x80 | (v & 0x3f)); - } - map_attr_to_fg_bg(viewdata->attrib, &fg, &bg); - if (bg != bg_base) - dview_draw_box(dv, RECT_DVIEW_CLIENT, xx, yy, - debug_font_width, debug_font_height, bg); - dview_draw_char(dv, RECT_DVIEW_CLIENT, xx, yy, debug_font_height, fg, s); + if(v < 128) { + s = v; + } else { + s = 0xc0 | (v>>6); + s |= (0x80 | (v & 0x3f)); } + map_attr_to_fg_bg(viewdata->attrib, &fg, &bg); + if (bg != bg_base) + dview_draw_box(dv, RECT_DVIEW_CLIENT, xx, yy, + debug_font_width, debug_font_height, bg); + if (v != ' ') + dview_draw_char(dv, RECT_DVIEW_CLIENT, xx, yy, debug_font_height, fg, s); xx += debug_font_width; viewdata++; } -- cgit v1.2.3