From f234dd3db110b3315c51dfc27a1cf8ed2c51beea Mon Sep 17 00:00:00 2001 From: fluxgen Date: Mon, 8 Apr 2002 18:57:04 +0000 Subject: fixed signed/unsigned in Xinerama stuff --- src/Basemenu.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Basemenu.cc b/src/Basemenu.cc index 79e53e5..d5cf707 100644 --- a/src/Basemenu.cc +++ b/src/Basemenu.cc @@ -22,7 +22,7 @@ // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER // DEALINGS IN THE SOFTWARE. -// $Id: Basemenu.cc,v 1.18 2002/04/04 11:28:19 fluxgen Exp $ +// $Id: Basemenu.cc,v 1.19 2002/04/08 18:57:04 fluxgen Exp $ //use GNU extensions #ifndef _GNU_SOURCE @@ -577,7 +577,7 @@ void Basemenu::drawSubmenu(unsigned int index) { head_h = screen->getHeight(); } - if ((x + item->submenu()->getWidth()) > (head_x + head_w)) { + if (static_cast(x + item->submenu()->getWidth()) > static_cast(head_x + head_w)) { x = ((shifted) ? menu.x_shift : menu.x) - item->submenu()->getWidth() - screen->getBorderWidth(); } @@ -585,7 +585,7 @@ void Basemenu::drawSubmenu(unsigned int index) { if (x < head_x) x = head_x; - if ((y + item->submenu()->getHeight()) > (head_y + head_h)) { + if (static_cast(y + item->submenu()->getHeight()) > static_cast(head_y + head_h)) { y = head_y + head_h - item->submenu()->getHeight() - screen->getBorderWidth2x(); } -- cgit v0.11.2