Saving the graphics state around touch_lo_draw_tile() seems unnecessary
Change-Id: Ic1a6cf64fb05810eccc91d0095c9ced54d3d9fe1
This commit is contained in:
parent
3e4102f0fc
commit
251e5534b1
@ -45,15 +45,12 @@
|
||||
{
|
||||
CGContextRef context = UIGraphicsGetCurrentContext();
|
||||
|
||||
CGContextSaveGState(context);
|
||||
touch_lo_draw_tile(context,
|
||||
self.tester.params.contextWidth,
|
||||
self.tester.params.contextHeight,
|
||||
MLODpxPointByDpxes(self.tester.params.tilePosX,self.tester.params.tilePosY),
|
||||
MLODpxSizeByDpxes(self.tester.params.tileWidth,self.tester.params.tileHeight));
|
||||
|
||||
CGContextRestoreGState(context);
|
||||
|
||||
MLODpxSize size = touch_lo_get_content_size();
|
||||
NSLog(@"touch_lo_get_content_size: width=%f, height=%f",size.width, size.height);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user