diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/fl_font_win32.cxx | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/fl_font_win32.cxx b/src/fl_font_win32.cxx index 0155dfcea..bf1bddeee 100644 --- a/src/fl_font_win32.cxx +++ b/src/fl_font_win32.cxx @@ -190,6 +190,7 @@ double fl_width(unsigned int c) { HDC gc = fl_gc; HWND hWnd = 0; if (!gc) { + hWnd = Fl::first_window() ? fl_xid(Fl::first_window()) : NULL; gc = GetDC(hWnd); } if (!gc) |
