From 6a524b46cb9c74c8d1b710c23bbc62bdafd54bb2 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Tue, 19 Oct 2021 07:05:31 +0200 Subject: Use uint8_t for color instead of float --- src/graphics/Rectangle.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/graphics') diff --git a/src/graphics/Rectangle.cpp b/src/graphics/Rectangle.cpp index 61a45f4..17060c7 100644 --- a/src/graphics/Rectangle.cpp +++ b/src/graphics/Rectangle.cpp @@ -6,7 +6,7 @@ extern "C" { namespace mgl { Rectangle::Rectangle(vec2f position, vec2f size) { - rectangle.color = { 1.0f, 1.0f, 1.0f, 1.0f }; + rectangle.color = { 255, 255, 255, 255 }; rectangle.position = { position.x, position.y }; rectangle.size = { size.x, size.y }; } -- cgit v1.2.3