This commit is contained in:
Cheng Zhao 2016-01-24 21:33:53 +08:00
commit 7761815339
3 changed files with 8 additions and 7 deletions

View file

@ -758,7 +758,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];
}