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:
parent
899184656a
commit
5182f58f01
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user