From 5182f58f01eac3e5a79eaecf1afd9867f0bd682f Mon Sep 17 00:00:00 2001 From: Fabien Costantini Date: Thu, 4 Dec 2008 17:45:50 +0000 Subject: STR#2086: one line was missing from latest fix, so hWnd was always null, sorry. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6541 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- src/fl_font_win32.cxx | 1 + 1 file changed, 1 insertion(+) 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) -- cgit v1.2.3