Skip to content

Commit

Permalink
fix helper
Browse files Browse the repository at this point in the history
  • Loading branch information
codebytere committed Jan 3, 2019
1 parent 5efc064 commit aa45499
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions atom/browser/api/atom_api_system_preferences_mac.mm
Expand Up @@ -106,10 +106,11 @@ AVMediaType ParseMediaType(const std::string& media_type) {
}

// Convert color to RGBA value like "#ABCDEF"
std::string ToRGBHex(NSColor* color) {
return base::StringPrintf("#%02X%02X%02X", (int)(color.redComponent * 0xFF),
(int)(color.greenComponent * 0xFF),
(int)(color.blueComponent * 0xFF));
std::string ToRGBA(NSColor* color) {
return base::StringPrintf(
"%02X%02X%02X%02X", (int)(color.redComponent * 0xFF),
(int)(color.greenComponent * 0xFF), (int)(color.blueComponent * 0xFF),
(int)(color.alphaComponent * 0xFF));
}
} // namespace

Expand Down

0 comments on commit aa45499

Please sign in to comment.