diff options
author | dec05eba <dec05eba@protonmail.com> | 2021-10-19 07:05:31 +0200 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2021-10-19 07:05:31 +0200 |
commit | 6a524b46cb9c74c8d1b710c23bbc62bdafd54bb2 (patch) | |
tree | 1dd13bd15b7f2c6de94a318e2d537f6bb7378dff /src | |
parent | 3e081d1669622bbc276b038ddc38ecf0600683c3 (diff) |
Use uint8_t for color instead of float
Diffstat (limited to 'src')
-rw-r--r-- | src/graphics/Rectangle.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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 }; } |