From 504573a2d336495a9e754d2ee96ba95de450fd6c Mon Sep 17 00:00:00 2001 From: Alexander Sulfrian Date: Wed, 30 Apr 2014 00:25:13 +0200 Subject: fix problems with gcc >= 4.7 --- src/menu/static_rectangle.cpp | 6 +++--- src/menu/vertical_text_alignment.hpp | 2 ++ 2 files changed, 5 insertions(+), 3 deletions(-) (limited to 'src/menu') diff --git a/src/menu/static_rectangle.cpp b/src/menu/static_rectangle.cpp index 9df6dc5b..83cf6487 100644 --- a/src/menu/static_rectangle.cpp +++ b/src/menu/static_rectangle.cpp @@ -31,9 +31,9 @@ namespace usdx : Static(stroke) { GLfloat vertices[] = {0, 0, - size.get_width(), 0, - size.get_width(), size.get_height(), - 0, size.get_height()}; + (float)size.get_width(), 0, + (float)size.get_width(), (float)size.get_height(), + 0, (float)size.get_height()}; this->register_vertices(vertices, 4); } diff --git a/src/menu/vertical_text_alignment.hpp b/src/menu/vertical_text_alignment.hpp index ec81d5f9..a417df9f 100644 --- a/src/menu/vertical_text_alignment.hpp +++ b/src/menu/vertical_text_alignment.hpp @@ -33,6 +33,8 @@ namespace usdx class VerticalTextAlignment { public: + virtual ~VerticalTextAlignment() {}; + /** * This function should be used to align a text vertical in a box. * -- cgit v1.2.3