diff options
author | Oliver Stöneberg <firewave@users.noreply.github.com> | 2012-08-18 10:01:13 +0000 |
---|---|---|
committer | Oliver Stöneberg <firewave@users.noreply.github.com> | 2012-08-18 10:01:13 +0000 |
commit | aab3cad57fcaf5949e8ff83be26f741251613fe4 (patch) | |
tree | cba3f7a76931345ca53202eb6560b55de2ff65b3 /src/osd | |
parent | 7d0cc68ac0b502c9c614ef82c84dbd4f732de752 (diff) |
fixed debugger window to just use fixed-pitch font and removed fallback since CreateFont will still return a font based on other characteristics when the face was not found (no whatsnew)
Diffstat (limited to 'src/osd')
-rw-r--r-- | src/osd/windows/debugwin.c | 15 |
1 files changed, 5 insertions, 10 deletions
diff --git a/src/osd/windows/debugwin.c b/src/osd/windows/debugwin.c index 8903b52cfe3..3605139b045 100644 --- a/src/osd/windows/debugwin.c +++ b/src/osd/windows/debugwin.c @@ -416,7 +416,7 @@ void debugwin_init_windows(running_machine &machine) // register the class; fail if we can't if (!RegisterClass(&wc)) - fatalerror("Unable to register debug window class"); + fatalerror("Unable to register debug window class\n"); // initialize the description of the view class wc.lpszClassName = TEXT("MAMEDebugView"); @@ -424,7 +424,7 @@ void debugwin_init_windows(running_machine &machine) // register the class; fail if we can't if (!RegisterClass(&wc)) - fatalerror("Unable to register debug view class"); + fatalerror("Unable to register debug view class\n"); class_registered = TRUE; } @@ -446,17 +446,12 @@ void debugwin_init_windows(running_machine &machine) // create a standard font t_face = tstring_from_utf8(options.debugger_font()); debug_font = CreateFont(-MulDiv(size, GetDeviceCaps(temp_dc, LOGPIXELSY), 72), 0, 0, 0, FW_MEDIUM, FALSE, FALSE, FALSE, - ANSI_CHARSET, OUT_DEFAULT_PRECIS, CLIP_DEFAULT_PRECIS, DEFAULT_QUALITY, FF_DONTCARE, t_face); + ANSI_CHARSET, OUT_DEFAULT_PRECIS, CLIP_DEFAULT_PRECIS, DEFAULT_QUALITY, FIXED_PITCH, t_face); osd_free(t_face); + t_face = NULL; - // fall back to Lucida Console 8 if (debug_font == NULL) - { - debug_font = CreateFont(-MulDiv(8, GetDeviceCaps(temp_dc, LOGPIXELSY), 72), 0, 0, 0, FW_MEDIUM, FALSE, FALSE, FALSE, - ANSI_CHARSET, OUT_DEFAULT_PRECIS, CLIP_DEFAULT_PRECIS, DEFAULT_QUALITY, FF_DONTCARE, TEXT("Lucida Console")); - if (debug_font == NULL) - fatalerror("Unable to create debug font"); - } + fatalerror("Unable to create debugger font\n"); // get the metrics old_font = SelectObject(temp_dc, debug_font); |