summaryrefslogtreecommitdiffstats
path: root/tdestyles/keramik
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2018-08-16 17:54:01 +0200
committerSlávek Banko <slavek.banko@axis.cz>2018-08-16 17:54:01 +0200
commit958fa42aa9576a6da0c9ca5de4823cb04407a713 (patch)
treeb3432c066ec6fef96d842577cc2033675c306ef2 /tdestyles/keramik
parent441f89ccd551b7d4bb6f395cb0fa3dab88698d79 (diff)
downloadtdelibs-958fa42aa9576a6da0c9ca5de4823cb04407a713.tar.gz
tdelibs-958fa42aa9576a6da0c9ca5de4823cb04407a713.zip
Fix FTBFS with stricter C++11
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
Diffstat (limited to 'tdestyles/keramik')
-rw-r--r--tdestyles/keramik/keramik.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/tdestyles/keramik/keramik.cpp b/tdestyles/keramik/keramik.cpp
index ca8dea403..1f93a5344 100644
--- a/tdestyles/keramik/keramik.cpp
+++ b/tdestyles/keramik/keramik.cpp
@@ -2833,11 +2833,11 @@ bool KeramikStyle::objectEventHandler( const TQStyleControlElementData &ceData,
//CHECKME: Not sure the rects are perfect..
XRectangle rects[5] = {
- {0, 0, resize->size().width()-2, resize->size().height()-6},
- {0, resize->size().height()-6, resize->size().width()-2, 1},
- {1, resize->size().height()-5, resize->size().width()-3, 1},
- {2, resize->size().height()-4, resize->size().width()-5, 1},
- {3, resize->size().height()-3, resize->size().width()-7, 1}
+ {0, 0, (unsigned short)(resize->size().width()-2), (unsigned short)(resize->size().height()-6)},
+ {0, (short)(resize->size().height()-6), (unsigned short)(resize->size().width()-2), 1},
+ {1, (short)(resize->size().height()-5), (unsigned short)(resize->size().width()-3), 1},
+ {2, (short)(resize->size().height()-4), (unsigned short)(resize->size().width()-5), 1},
+ {3, (short)(resize->size().height()-3), (unsigned short)(resize->size().width()-7), 1}
};
XShapeCombineRectangles(tqt_xdisplay(), listbox->handle(), ShapeBounding, 0, 0,