Fix (probably correct!) for compiling Fl_Window::capture_titlebar_and_borders() on WIN32 hosts.

This allows compilation to complete, and appears to work. Probably.



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11078 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
Ian MacArthur
2016-01-28 17:38:11 +00:00
parent d3675ae058
commit 3b48b22a71
+1 -1
View File
@@ -2746,7 +2746,7 @@ void Fl_Window::capture_titlebar_and_borders(Fl_RGB_Image*& top, Fl_RGB_Image*&
top = left = bottom = right = NULL; top = left = bottom = right = NULL;
if (!shown() || parent() || !border() || !visible()) return; if (!shown() || parent() || !border() || !visible()) return;
int wsides, hbottom, bt; int wsides, hbottom, bt;
RECT r = border_width_title_bar_height(w, wsides, hbottom, bt); RECT r = border_width_title_bar_height(this, wsides, hbottom, bt);
int htop = bt + hbottom; int htop = bt + hbottom;
HDC save_gc = fl_gc; HDC save_gc = fl_gc;
Window save_win = fl_window; Window save_win = fl_window;