diff options
author | Alexander Sulfrian <alexander@sulfrian.net> | 2013-01-20 21:42:48 +0100 |
---|---|---|
committer | Alexander Sulfrian <alexander@sulfrian.net> | 2013-01-20 21:42:48 +0100 |
commit | a6b096260ae3dea25233852c90b04b8298b92688 (patch) | |
tree | 819a65d9640350151687eeb98bf17f8876b78d00 | |
parent | 3de540a8a0c8cd9eca18472b9fe1114e5970ba4d (diff) | |
download | usdx-a6b096260ae3dea25233852c90b04b8298b92688.tar.gz usdx-a6b096260ae3dea25233852c90b04b8298b92688.tar.xz usdx-a6b096260ae3dea25233852c90b04b8298b92688.zip |
menu/drawable_control: fix focus with clipping
Diffstat (limited to '')
-rw-r--r-- | src/menu/drawable_control.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/menu/drawable_control.cpp b/src/menu/drawable_control.cpp index 1dc36072..0708599b 100644 --- a/src/menu/drawable_control.cpp +++ b/src/menu/drawable_control.cpp @@ -239,6 +239,7 @@ namespace usdx Rectangle<int> parent_rect = parent->get_absolut_rect(); rect += Point<int>(parent_rect.get_left(), parent_rect.get_top()); + rect = parent_rect.intersect(rect); } return rect; |