Support alpha in backgroundColor

This commit is contained in:
evgenyzinoviev 2016-01-23 00:54:43 +01:00
parent 9b28b0e943
commit 2fcd3ce7cd
2 changed files with 5 additions and 5 deletions

View file

@ -710,7 +710,7 @@ void NativeWindowMac::SetBackgroundColor(const std::string& color_name) {
NSColor *color = [NSColor colorWithCalibratedRed:SkColorGetR(background_color)
green:SkColorGetG(background_color)
blue:SkColorGetB(background_color)
alpha:1.0];
alpha:SkColorGetA(background_color)/255.0f];
[window_ setBackgroundColor:color];
}