winedbg: Use standard fixed pitch UI font for the crash dialog.
Dmitry Timoshkov
dmitry at baikal.ru
Sun Aug 5 21:08:01 CDT 2012
It's much more readable.
---
programs/winedbg/crashdlg.c | 8 ++------
1 file changed, 2 insertions(+), 6 deletions(-)
diff --git a/programs/winedbg/crashdlg.c b/programs/winedbg/crashdlg.c
index 4e02a4b..b9016bf 100644
--- a/programs/winedbg/crashdlg.c
+++ b/programs/winedbg/crashdlg.c
@@ -101,13 +101,9 @@ static void set_bold_font(HWND hDlg)
static void set_fixed_font( HWND dlg, UINT id )
{
- HFONT hfont = (HFONT)SendDlgItemMessageW( dlg, id, WM_GETFONT, 0, 0);
- LOGFONTW font;
+ HFONT hfont;
- GetObjectW(hfont, sizeof(LOGFONTW), &font);
- font.lfPitchAndFamily = FIXED_PITCH;
- font.lfFaceName[0] = 0;
- hfont = CreateFontIndirectW(&font);
+ hfont = GetStockObject( ANSI_FIXED_FONT );
SendDlgItemMessageW( dlg, id, WM_SETFONT, (WPARAM)hfont, TRUE );
}
--
1.7.11.4
More information about the wine-patches
mailing list