From 443d35771754821fbcf205005c7f5a632bdfbbd2 Mon Sep 17 00:00:00 2001 From: Alexander Sulfrian Date: Sun, 25 Mar 2012 21:37:51 +0200 Subject: utils/rectangle: could get top/bottom/left/right coordinates from Rectangle --- src/menu/clipping_helper.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/menu/clipping_helper.cpp') 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 -- cgit v1.2.3