summaryrefslogtreecommitdiff
path: root/ios
diff options
context:
space:
mode:
authorTor Lillqvist <tml@collabora.com>2013-11-01 14:50:40 +0200
committerJan Holesovsky <kendy@collabora.com>2013-11-15 16:52:01 +0100
commit251e5534b183a1329ddb5464f12eccc151a65bcc (patch)
treec10b2137bc0dab1ecedffc6d2dba2f78825702e4 /ios
parent3e4102f0fc7f027c54f974b774b672772cbf66ab (diff)
Saving the graphics state around touch_lo_draw_tile() seems unnecessary
Change-Id: Ic1a6cf64fb05810eccc91d0095c9ced54d3d9fe1
Diffstat (limited to 'ios')
-rw-r--r--ios/shared/ios_sharedlo/objective_c/view_controllers/testing_tiles/MLOTestingTile.m3
1 files changed, 0 insertions, 3 deletions
diff --git a/ios/shared/ios_sharedlo/objective_c/view_controllers/testing_tiles/MLOTestingTile.m b/ios/shared/ios_sharedlo/objective_c/view_controllers/testing_tiles/MLOTestingTile.m
index 864244e5eb35..0c18b82c12c1 100644
--- a/ios/shared/ios_sharedlo/objective_c/view_controllers/testing_tiles/MLOTestingTile.m
+++ b/ios/shared/ios_sharedlo/objective_c/view_controllers/testing_tiles/MLOTestingTile.m
@@ -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);
}