• R/O
  • SSH
  • HTTPS

mani2: Commit


Commit MetaInfo

Revision57 (tree)
Time2009-06-21 21:10:26
Authorhikarin

Log Message

[mani2/cocoa] * should make faster

Change Summary

Incremental Difference

--- trunk/cocoa/Classes/MMUIView.m (revision 56)
+++ trunk/cocoa/Classes/MMUIView.m (revision 57)
@@ -55,14 +55,12 @@
5555 return YES;
5656 }
5757
58-- (void)drawRect:(NSRect)rect
58+- (void)drawRect:(CGRect)rect
5959 {
60- CGContextRef graphics = UIGraphicsGetCurrentContext();
6160 if (bitmap != NULL) {
61+ CGContextRef graphics = UIGraphicsGetCurrentContext();
6262 CGImageRef image = CGBitmapContextCreateImage(bitmap);
6363 CGRect r = CGRectMake(point.x, point.y, size.width, size.height);
64- CGContextSetRGBFillColor(graphics, 1.0, 1.0, 1.0, 1.0);
65- CGContextFillRect(graphics, r);
6664 CGContextDrawImage(graphics, r, image);
6765 CGImageRelease(image);
6866 }
Show on old repository browser