Better use of FL_PORTING preprocessor variable.

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11004 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
Manolo Gouy
2016-01-11 09:42:50 +00:00
parent c8ca93de71
commit 3235168654
+3 -1
View File
@@ -298,9 +298,11 @@ void Fl_Paged_Device::draw_decorated_window(Fl_Window *win, int x_offset, int y_
{ {
Fl_RGB_Image *top, *left, *bottom, *right; Fl_RGB_Image *top, *left, *bottom, *right;
#if defined(FL_PORTING) #if defined(FL_PORTING)
top=left=bottom=right=NULL;
# pragma message "FL_PORTING: implement Fl_X::capture_titlebar_and_borders" # pragma message "FL_PORTING: implement Fl_X::capture_titlebar_and_borders"
#endif #else
Fl_X::i(win)->capture_titlebar_and_borders(top, left, bottom, right); Fl_X::i(win)->capture_titlebar_and_borders(top, left, bottom, right);
#endif
int wsides = left ? left->w() : 0; int wsides = left ? left->w() : 0;
int toph = top ? top->h() : 0; int toph = top ? top->h() : 0;
if (top) { if (top) {