aboutsummaryrefslogtreecommitdiffstats
path: root/src/menu/static_rectangle.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/menu/static_rectangle.cpp')
-rw-r--r--src/menu/static_rectangle.cpp6
1 files changed, 3 insertions, 3 deletions
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);
}