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
This commit is contained in:
Fabien Costantini 2008-12-04 17:45:50 +00:00
parent 899184656a
commit 5182f58f01

View File

@ -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)