Preserve alpha when resampling style colors

This commit is contained in:
Thomas Goyne 2014-05-21 21:11:55 -07:00
parent 5830fc4225
commit deaf833605
1 changed files with 1 additions and 1 deletions

View File

@ -89,7 +89,7 @@ public:
Color rgb_to_rgb(Color c) const {
auto arr = rgb_to_rgb(std::array<uint8_t, 3>{{c.r, c.g, c.b}});
return Color{arr[0], arr[1], arr[2]};
return Color{arr[0], arr[1], arr[2], c.a};
}
};
}