aboutsummaryrefslogtreecommitdiffstats
path: root/src/menu
diff options
context:
space:
mode:
authorAlexander Sulfrian <alexander@sulfrian.net>2012-03-25 21:37:51 +0200
committerAlexander Sulfrian <alexander@sulfrian.net>2013-01-13 22:40:52 +0100
commit443d35771754821fbcf205005c7f5a632bdfbbd2 (patch)
tree8561f6037eeb7d5e6e36d8dff9c9a5d061234c66 /src/menu
parentdffdab14fb56f2702abdc88c6df769a58e926c9d (diff)
downloadusdx-443d35771754821fbcf205005c7f5a632bdfbbd2.tar.gz
usdx-443d35771754821fbcf205005c7f5a632bdfbbd2.tar.xz
usdx-443d35771754821fbcf205005c7f5a632bdfbbd2.zip
utils/rectangle: could get top/bottom/left/right coordinates from Rectangle
Diffstat (limited to 'src/menu')
-rw-r--r--src/menu/clipping_helper.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/menu/clipping_helper.cpp b/src/menu/clipping_helper.cpp
index b03a4e8c..e12823cc 100644
--- a/src/menu/clipping_helper.cpp
+++ b/src/menu/clipping_helper.cpp
@@ -46,11 +46,11 @@ namespace usdx
log << log4cpp::Priority::DEBUG << "Clipping ("
<< new_scissor_box.get_width() << ", "
<< new_scissor_box.get_height() << ") at window offset: ("
- << new_scissor_box.get_x() << ", "
- << new_scissor_box.get_y() << ")";
+ << new_scissor_box.get_top() << ", "
+ << new_scissor_box.get_left() << ")";
// setup clipping box
- glScissor(new_scissor_box.get_x(), new_scissor_box.get_y(),
+ glScissor(new_scissor_box.get_top(), new_scissor_box.get_left(),
new_scissor_box.get_width(), new_scissor_box.get_height());
// enable clipping