From d9bd735509c28683be8cc203a15f6d740e6650cf Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Fri, 10 Feb 2017 17:13:31 +0100 Subject: Fix 64 bit warning in ui test app. --- plugingui/tests/resizetest.cc | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) (limited to 'plugingui') diff --git a/plugingui/tests/resizetest.cc b/plugingui/tests/resizetest.cc index 5a27eb8..73f8673 100644 --- a/plugingui/tests/resizetest.cc +++ b/plugingui/tests/resizetest.cc @@ -32,7 +32,9 @@ #endif #include -#include +#include +#include +#include class TestWindow : public GUI::Window @@ -86,10 +88,10 @@ public: painter.setColour(GUI::Colour(1,0,0)); char str[64]; sprintf(str, "reported: (%d, %d); (%d, %d)", - reportedPosition.first, - reportedPosition.second, - reportedSize.first, - reportedSize.second); + (int)reportedPosition.first, + (int)reportedPosition.second, + (int)reportedSize.first, + (int)reportedSize.second); auto stringWidth = font.textWidth(str); auto stringHeight = font.textHeight(str); painter.drawText(reportedSize.first / 2 - stringWidth / 2, @@ -101,10 +103,10 @@ public: painter.setColour(GUI::Colour(1,0,0)); char str[64]; sprintf(str, "current: (%d, %d); (%d, %d)", - currentPosition.first, - currentPosition.second, - currentSize.first, - currentSize.second); + (int)currentPosition.first, + (int)currentPosition.second, + (int)currentSize.first, + (int)currentSize.second); auto stringWidth = font.textWidth(str); auto stringHeight = font.textHeight(str); painter.drawText(currentSize.first / 2 - stringWidth / 2, -- cgit v1.2.3