Skip to content

Commit

Permalink
Fix the default fill/stroke color values from the reference platform.
Browse files Browse the repository at this point in the history
  • Loading branch information
DHowett committed Jan 18, 2017
1 parent 897a053 commit 92ed07c
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions Frameworks/CoreGraphics/CGContext.mm
Original file line number Diff line number Diff line change
Expand Up @@ -406,10 +406,8 @@ CFTypeID CGContextGetTypeID() {
#pragma region Global State - Lifetime
static HRESULT __CGContextPrepareDefaults(CGContextRef context) {
// Reference platform defaults:
// * Fill : fully transparent black
// * Stroke: fully opaque black
// If a context does not support alpha, the default fill looks like fully opaque black.
CGContextSetRGBFillColor(context, 0, 0, 0, 0);
// * All colors are fully opaque black.
CGContextSetRGBFillColor(context, 0, 0, 0, 1);
CGContextSetRGBStrokeColor(context, 0, 0, 0, 1);
return S_OK;
}
Expand Down

0 comments on commit 92ed07c

Please sign in to comment.