Kaydet (Commit) f3dbb35c authored tarafından Tor Lillqvist's avatar Tor Lillqvist

NSLogging changes

Change-Id: I42991d7a9c9e0bd4a023739051393935efa5c29f
üst a85c0279
...@@ -14,9 +14,9 @@ ...@@ -14,9 +14,9 @@
- (void)drawRect:(CGRect)rect - (void)drawRect:(CGRect)rect
{ {
// NSLog(@"drawRect: %fx%f@(%f,%f)", rect.size.width, rect.size.height, rect.origin.x, rect.origin.y); NSLog(@"drawRect: %dx%d@(%d,%d)", (int) rect.size.width, (int) rect.size.height, (int) rect.origin.x, (int) rect.origin.y);
NSDate *a = [NSDate date]; NSDate *startDate = [NSDate date];
CGContextRef context = UIGraphicsGetCurrentContext(); CGContextRef context = UIGraphicsGetCurrentContext();
CGContextSaveGState(context); CGContextSaveGState(context);
...@@ -25,7 +25,7 @@ ...@@ -25,7 +25,7 @@
lo_render_windows(context, rect); lo_render_windows(context, rect);
CGContextRestoreGState(context); CGContextRestoreGState(context);
NSLog(@"drawRect: lo_render_windows took %f s", [[NSDate date] timeIntervalSinceDate: a]); NSLog(@"drawRect: lo_render_windows took %f s", [[NSDate date] timeIntervalSinceDate: startDate]);
} }
- (void) tapGesture:(UIGestureRecognizer *)gestureRecognizer - (void) tapGesture:(UIGestureRecognizer *)gestureRecognizer
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment