Skip to content

Commit

Permalink
update label constants names
Browse files Browse the repository at this point in the history
  • Loading branch information
Dmitry Stadnik committed Nov 13, 2011
1 parent e5314ff commit 1b052c6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions BALabel.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,9 @@
#import "BACommon.h"

typedef enum {
kBALabelBezelNone = 0,
kBALabelBezelRound,
kBALabelBezelRoundSolid
BALabelBezelNone = 0,
BALabelBezelRound,
BALabelBezelRoundSolid
} BALabelBezel;

@interface BALabel : UILabel
Expand Down
6 changes: 3 additions & 3 deletions BALabel.m
Original file line number Diff line number Diff line change
Expand Up @@ -148,9 +148,9 @@ - (CGPathRef)createRoundBezelPath {

- (void)drawBezel {
switch (self.bezel) {
case kBALabelBezelNone:
case BALabelBezelNone:
break;
case kBALabelBezelRound: {
case BALabelBezelRound: {
CGContextRef ctx = UIGraphicsGetCurrentContext();
CGContextSaveGState(ctx);
CGContextSetLineWidth(ctx, MAX(1, self.bezelLineWidth));
Expand All @@ -164,7 +164,7 @@ - (void)drawBezel {
CGContextRestoreGState(ctx);
break;
}
case kBALabelBezelRoundSolid: {
case BALabelBezelRoundSolid: {
CGContextRef ctx = UIGraphicsGetCurrentContext();
CGContextSaveGState(ctx);
if (self.bezelColor) {
Expand Down

0 comments on commit 1b052c6

Please sign in to comment.