summaryrefslogtreecommitdiff
path: root/plugingui/tests/resizetest.cc
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2017-02-10 17:13:31 +0100
committerBent Bisballe Nyeng <deva@aasimon.org>2017-02-10 17:13:31 +0100
commitd9bd735509c28683be8cc203a15f6d740e6650cf (patch)
treed3376077472d67ce1fc7be6b3a7c4d81ac7e0668 /plugingui/tests/resizetest.cc
parent4dd6fd051bd6eeb12ce0a9d007dcb4d59a69015b (diff)
Fix 64 bit warning in ui test app.
Diffstat (limited to 'plugingui/tests/resizetest.cc')
-rw-r--r--plugingui/tests/resizetest.cc20
1 files changed, 11 insertions, 9 deletions
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 <hugin.hpp>
-#include <mainwindow.h>
+#include <window.h>
+#include <font.h>
+#include <painter.h>
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,