Better color typing

This commit is contained in:
Ian Gulliver
2017-08-13 08:44:49 -07:00
parent 0ccae577eb
commit 00a1577c53
8 changed files with 87 additions and 85 deletions

View File

@@ -2,5 +2,8 @@
#include "color.h"
constexpr RgbColor kBlack = {{{{{0x0000, 0x0000, 0x0000}}}}};
constexpr RgbColor kWhite = {{{{{0xffff, 0xffff, 0xffff}}}}};
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wglobal-constructors"
const RgbColor kBlack = {{{{{0x0000, 0x0000, 0x0000}}}}};
const RgbColor kWhite = {{{{{0xffff, 0xffff, 0xffff}}}}};
#pragma clang diagnostic pop