From 0caa4fbc4cec9e416f570eda22c7263d7bee8178 Mon Sep 17 00:00:00 2001 From: drewcassidy Date: Thu, 1 Apr 2021 16:50:02 -0700 Subject: [PATCH] fix Color constexpr constructor --- quicktex/Color.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/quicktex/Color.h b/quicktex/Color.h index 2ecd41d..3d2fc8d 100644 --- a/quicktex/Color.h +++ b/quicktex/Color.h @@ -34,9 +34,9 @@ class Color { uint8_t b; uint8_t a; - constexpr Color() { SetRGBA(0, 0, 0, 0xFF); } + constexpr Color() : Color(0, 0, 0, 0xFF) {} - constexpr Color(uint8_t vr, uint8_t vg, uint8_t vb, uint8_t va = 0xFF) { SetRGBA(vr, vg, vb, va); } + constexpr Color(uint8_t vr, uint8_t vg, uint8_t vb, uint8_t va = 0xFF) : r(vr), g(vg), b(vb), a(va) {} Color(Vector4Int v);