aboutsummaryrefslogtreecommitdiffstats
path: root/src/menu/drawable_control.cpp
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/menu/drawable_control.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/menu/drawable_control.cpp b/src/menu/drawable_control.cpp
index 00b6fa78..10da2bfc 100644
--- a/src/menu/drawable_control.cpp
+++ b/src/menu/drawable_control.cpp
@@ -81,8 +81,11 @@ namespace usdx
clipping_lock.unlock();
boost::mutex::scoped_lock lock(size_mutex);
- ClippingHelper clipping(Rectangle<int>(position, size));
+ Point<int> offset(0, 0);
+ if (parent)
+ offset = parent->get_window_coords();
+ ClippingHelper clipping(Rectangle<int>(offset + position, size));
Drawable::repaint();
}
else {