Skip to content

Commit

Permalink
Merge pull request escoz#667 from domhof/master
Browse files Browse the repository at this point in the history
Use CGFloat type for color values.
  • Loading branch information
escoz committed Apr 13, 2014
2 parents 733e98f + 716ac96 commit 7742c4e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion extras/UIColor+ColorUtilities.m
Original file line number Diff line number Diff line change
@@ -10,7 +10,7 @@ @implementation UIColor (ColorUtilities)

- (UIColor *)darkerColor
{
float r, g, b, a;
CGFloat r, g, b, a;
if ([self getRed:&r green:&g blue:&b alpha:&a])
return [UIColor colorWithRed:MAX(r - 0.4, 0.0)
green:MAX(g - 0.4, 0.0)

0 comments on commit 7742c4e

Please sign in to comment.