[Libreoffice-commits] core.git: Branch 'feature/tiledrendering' - ios/shared

Tor Lillqvist tml at collabora.com
Fri Nov 1 14:12:34 CET 2013


 ios/shared/ios_sharedlo/objective_c/view_controllers/testing_tiles/MLOTestingTile.m |    3 ---
 1 file changed, 3 deletions(-)

New commits:
commit 42b060d8ea3819ac04dae87b8cccd16397a9ba88
Author: Tor Lillqvist <tml at collabora.com>
Date:   Fri Nov 1 14:50:40 2013 +0200

    Saving the graphics state around touch_lo_draw_tile() seems unnecessary
    
    Change-Id: Ic1a6cf64fb05810eccc91d0095c9ced54d3d9fe1

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 864244e..0c18b82 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);
 }


More information about the Libreoffice-commits mailing list