Saving the graphics state around touch_lo_draw_tile() seems unnecessary

Change-Id: Ic1a6cf64fb05810eccc91d0095c9ced54d3d9fe1
This commit is contained in:
Tor Lillqvist 2013-11-01 14:50:40 +02:00 committed by Jan Holesovsky
parent 3e4102f0fc
commit 251e5534b1

View File

@ -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);
}