summaryrefslogtreecommitdiff
path: root/src/Fl_Paged_Device.cxx
diff options
context:
space:
mode:
authorManolo Gouy <Manolo>2014-03-05 12:55:34 +0000
committerManolo Gouy <Manolo>2014-03-05 12:55:34 +0000
commit1ce59d2caadef759bfa4b608c01cf2243c9c208a (patch)
tree5065a5b7c18696f35ae691f675516adce1266391 /src/Fl_Paged_Device.cxx
parent770c2807085be7e71219a9daa66d3ea1ce537815 (diff)
Removed unnecessary clip when printing a sub-window.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10116 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/Fl_Paged_Device.cxx')
-rw-r--r--src/Fl_Paged_Device.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/Fl_Paged_Device.cxx b/src/Fl_Paged_Device.cxx
index c8eb22249..fcc18eab2 100644
--- a/src/Fl_Paged_Device.cxx
+++ b/src/Fl_Paged_Device.cxx
@@ -55,8 +55,8 @@ void Fl_Paged_Device::print_widget(Fl_Widget* widget, int delta_x, int delta_y)
if (new_x != old_x || new_y != old_y) {
translate(new_x - old_x, new_y - old_y );
}
- // if widget is a window, clip all drawings to the window area
- if (is_window) fl_push_clip(0, 0, widget->w(), widget->h() );
+ // if widget is a main window, clip all drawings to the window area
+ if (is_window && !widget->window()) fl_push_clip(0, 0, widget->w(), widget->h() );
// we do some trickery to recognize OpenGL windows and draw them via a plugin
int drawn_by_plugin = 0;
if (widget->as_gl_window()) {
@@ -74,7 +74,7 @@ void Fl_Paged_Device::print_widget(Fl_Widget* widget, int delta_x, int delta_y)
if (!drawn_by_plugin) {
widget->draw();
}
- if (is_window) fl_pop_clip();
+ if (is_window && !widget->window()) fl_pop_clip();
// find subwindows of widget and print them
traverse(widget);
// reset origin to where it was