diff options
author | Łukasz Paczos <lukas.paczos@gmail.com> | 2019-03-27 12:39:16 +0100 |
---|---|---|
committer | Łukasz Paczos <lukasz.paczos@mapbox.com> | 2019-05-22 16:32:04 +0200 |
commit | 37d9dfae69247397d1226e474bfd60c5d3e7b0ad (patch) | |
tree | 789d45c7b5ce59bb5d947116876dbcb73227eead | |
parent | b21f9f3e35a60fc31fe20b23e7eb71155ab8027a (diff) | |
download | qtlocation-mapboxgl-37d9dfae69247397d1226e474bfd60c5d3e7b0ad.tar.gz |
[core] round color string's alpha to 2 decimal places
-rw-r--r-- | src/mbgl/util/color.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mbgl/util/color.cpp b/src/mbgl/util/color.cpp index 55f1b65436..b8574174f1 100644 --- a/src/mbgl/util/color.cpp +++ b/src/mbgl/util/color.cpp @@ -39,7 +39,7 @@ std::array<double, 4> Color::toArray() const { r * 255 / a, g * 255 / a, b * 255 / a, - a, + floor(a * 100 + .5) / 100 // round to 2 decimal places }}; } } |