equal
deleted
inserted
replaced
59 } |
59 } |
60 |
60 |
61 -(void) selectColor:(NSUInteger) color { |
61 -(void) selectColor:(NSUInteger) color { |
62 if (color != self.selectedColor) { |
62 if (color != self.selectedColor) { |
63 self.selectedColor = color; |
63 self.selectedColor = color; |
64 self.colorIndex = [self.colorArray indexOfObject:[NSNumber numberWithUnsignedInt:color]]; |
64 self.colorIndex = [self.colorArray indexOfObject:[NSNumber numberWithUnsignedInteger:color]]; |
65 |
65 |
66 self.backgroundColor = [UIColor colorWithRed:((color & 0x00FF0000) >> 16)/255.0f |
66 self.backgroundColor = [UIColor colorWithRed:((color & 0x00FF0000) >> 16)/255.0f |
67 green:((color & 0x0000FF00) >> 8)/255.0f |
67 green:((color & 0x0000FF00) >> 8)/255.0f |
68 blue: (color & 0x000000FF)/255.0f |
68 blue: (color & 0x000000FF)/255.0f |
69 alpha:1.0f]; |
69 alpha:1.0f]; |