Kaydet (Commit) 629a705c authored tarafından Stephan Bergmann's avatar Stephan Bergmann

loplugin:cstylecast

Change-Id: I9bfd611ef5451b936f2b7b4dda6dd8ede23832a4
üst f73e6a96
...@@ -550,14 +550,14 @@ bool AquaSalGraphics::drawNativeControl(ControlType nType, ...@@ -550,14 +550,14 @@ bool AquaSalGraphics::drawNativeControl(ControlType nType,
CGFloat unifiedHeight = rControlRegion.GetHeight(); CGFloat unifiedHeight = rControlRegion.GetHeight();
CGRect drawRect = CGRectMake(rControlRegion.Left(), rControlRegion.Top(), rControlRegion.GetWidth(), rControlRegion.GetHeight()); CGRect drawRect = CGRectMake(rControlRegion.Left(), rControlRegion.Top(), rControlRegion.GetWidth(), rControlRegion.GetHeight());
CUIDraw([NSWindow coreUIRenderer], drawRect, mrContext, CUIDraw([NSWindow coreUIRenderer], drawRect, mrContext,
(CFDictionaryRef)[NSDictionary dictionaryWithObjectsAndKeys: reinterpret_cast<CFDictionaryRef>([NSDictionary dictionaryWithObjectsAndKeys:
@"kCUIWidgetWindowFrame", @"widget", @"kCUIWidgetWindowFrame", @"widget",
@"regularwin", @"windowtype", @"regularwin", @"windowtype",
(bDrawActive ? @"normal" : @"inactive"), @"state", (bDrawActive ? @"normal" : @"inactive"), @"state",
[NSNumber numberWithDouble:unifiedHeight], @"kCUIWindowFrameUnifiedTitleBarHeightKey", [NSNumber numberWithDouble:unifiedHeight], @"kCUIWindowFrameUnifiedTitleBarHeightKey",
[NSNumber numberWithBool:NO], @"kCUIWindowFrameDrawTitleSeparatorKey", [NSNumber numberWithBool:NO], @"kCUIWindowFrameDrawTitleSeparatorKey",
[NSNumber numberWithBool:YES], @"is.flipped", [NSNumber numberWithBool:YES], @"is.flipped",
nil], nil]),
nil);; nil);;
} }
else else
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment