diff options
author | Alexander Sulfrian <alexander@sulfrian.net> | 2012-04-11 21:14:59 +0200 |
---|---|---|
committer | Alexander Sulfrian <alexander@sulfrian.net> | 2013-01-13 22:40:52 +0100 |
commit | 40caf6163ff2e1274d71146c207fbde0c099b089 (patch) | |
tree | 200d52aa09aa03cd199216d8ad172a57dcde62e0 /src/menu/drawable_control.cpp | |
parent | bb8e600a93557207410cf11977d19bb5bc133fcc (diff) | |
download | usdx-40caf6163ff2e1274d71146c207fbde0c099b089.tar.gz usdx-40caf6163ff2e1274d71146c207fbde0c099b089.tar.xz usdx-40caf6163ff2e1274d71146c207fbde0c099b089.zip |
menu/clipping_helper: made clipping working
Diffstat (limited to '')
-rw-r--r-- | src/menu/drawable_control.cpp | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/menu/drawable_control.cpp b/src/menu/drawable_control.cpp index 4d1f8355..9d00d3f1 100644 --- a/src/menu/drawable_control.cpp +++ b/src/menu/drawable_control.cpp @@ -79,11 +79,7 @@ namespace usdx clipping_lock.unlock(); boost::mutex::scoped_lock lock(size_mutex); - Point<int> offset(0, 0); - if (parent) - offset = parent->get_window_coords(); - - ClippingHelper clipping(Rectangle<int>(offset + position, size)); + ClippingHelper clipping(parent, Rectangle<int>(position, size)); Drawable::repaint(); } else { |