From 0d36c33cb455627b2c6a9aa6ff160738eda3dbe9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Nusser?= Date: Sat, 9 Jun 2018 12:59:51 +0200 Subject: Fix colour class. --- plugingui/colour.cc | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/plugingui/colour.cc b/plugingui/colour.cc index 9abe7eb..70aa562 100644 --- a/plugingui/colour.cc +++ b/plugingui/colour.cc @@ -32,17 +32,17 @@ namespace GUI { Colour::Colour() { - data = {1.0f, 1.0f, 1.0f, 1.0f}; + data = {{1.0f, 1.0f, 1.0f, 1.0f}}; } Colour::Colour(float grey, float a) { - data = {grey, grey, grey, a}; + data = {{grey, grey, grey, a}}; } Colour::Colour(float r, float g, float b, float a) { - data = {r, g, b, a}; + data = {{r, g, b, a}}; } Colour::Colour(std::uint8_t r, std::uint8_t g, std::uint8_t b, std::uint8_t a) @@ -57,6 +57,7 @@ Colour::Colour(const Colour& other) Colour& Colour::operator=(const Colour& other) { data = other.data; + return *this; } bool Colour::operator==(const Colour& other) const -- cgit v1.2.3