[core] Fixed to-rgba with zero opacity

This commit is contained in:
Minh Nguyễn
2018-03-30 03:21:44 -07:00
parent f4d9fb816d
commit d066e94103
5 changed files with 27 additions and 15 deletions

View File

@@ -4,6 +4,7 @@
#include <cassert>
#include <string>
#include <array>
namespace mbgl {
@@ -37,6 +38,7 @@ public:
static optional<Color> parse(const std::string&);
std::string stringify() const;
std::array<double, 4> toArray() const;
};
inline bool operator==(const Color& colorA, const Color& colorB) {