mirror of https://github.com/odrling/Aegisub
Preserve alpha when resampling style colors
This commit is contained in:
parent
5830fc4225
commit
deaf833605
|
@ -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};
|
||||
}
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue