Skip to content

Commit 93bc9da

Browse files
Merge branch 'master' of https://github.com/Marxon13/M13Checkbox
2 parents 8ca28a6 + 1328fa5 commit 93bc9da

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Classes/M13Checkbox.m

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,12 +54,12 @@ - (void)drawRect:(CGRect)rect
5454
}
5555

5656
if (self.selected) {
57-
float r, g, b, a;
57+
CGFloat r, g, b, a;
5858
[fillColor getRed:&r green:&g blue:&b alpha:&a];
5959
}
6060

6161
if (!checkbox.enabled) {
62-
float r, g, b, a;
62+
CGFloat r, g, b, a;
6363
[fillColor getRed:&r green:&g blue:&b alpha:&a];
6464
fillColor = [UIColor colorWithRed:(r + .2) green:(g + .2) blue:(b + .2) alpha:a];
6565
[checkbox.strokeColor getRed:&r green:&g blue:&b alpha:&a];
@@ -81,7 +81,7 @@ - (void)drawRect:(CGRect)rect
8181
[boxPath stroke];
8282
} else {
8383
//Create colors based off of tint color
84-
float r, g, b, a;
84+
CGFloat r, g, b, a;
8585
[fillColor getRed:&r green:&g blue:&b alpha:&a];
8686
UIColor *topColor = [UIColor colorWithRed:(r + 0.20) green:(g + 0.20) blue:(b + 0.20) alpha:a];
8787
UIColor *bottomColor = [UIColor colorWithRed:(r + 0.15) green:(g + 0.15) blue:(b + 0.15) alpha:a];

0 commit comments

Comments
 (0)