summaryrefslogtreecommitdiff
path: root/ios
diff options
context:
space:
mode:
authorTor Lillqvist <tml@collabora.com>2013-11-04 12:21:25 +0200
committerJan Holesovsky <kendy@collabora.com>2013-11-15 16:52:06 +0100
commite56b0c0f248ae779a0abd9e1d5aa7f7420a03f64 (patch)
treeede581e5da78d98c29449afbd2173117c2f0f4cf /ios
parentad74354c92787cc35eff9aa7d72d447676cb01ac (diff)
Adjust parameter defaults to give pleasant result
Change-Id: Ifee900344547ef25b2041d25c13fcbc50428485e
Diffstat (limited to 'ios')
-rw-r--r--ios/shared/ios_sharedlo/objective_c/view_controllers/testing_tiles/MLOTestingTileParametersViewController.h14
1 files changed, 10 insertions, 4 deletions
diff --git a/ios/shared/ios_sharedlo/objective_c/view_controllers/testing_tiles/MLOTestingTileParametersViewController.h b/ios/shared/ios_sharedlo/objective_c/view_controllers/testing_tiles/MLOTestingTileParametersViewController.h
index 3ca92f340ad5..6c1aea2714ed 100644
--- a/ios/shared/ios_sharedlo/objective_c/view_controllers/testing_tiles/MLOTestingTileParametersViewController.h
+++ b/ios/shared/ios_sharedlo/objective_c/view_controllers/testing_tiles/MLOTestingTileParametersViewController.h
@@ -9,12 +9,18 @@
#import "MLOViewController.h"
#import "MLOTestingTileSubviewControllerProtocol.h"
+// The size of the actual pixel tile
static const CGFloat CONTEXT_WIDTH_DEFAULT = 450;
static const CGFloat CONTEXT_HEIGHT_DEFAULT = 450;
-static const CGFloat TILE_POS_X_DEFAULT = 400;
-static const CGFloat TILE_POS_Y_DEFAULT = 420;
-static const CGFloat TILE_WIDTH_DEFAULT = 250;
-static const CGFloat TILE_HEIGHT_DEFAULT = 250;
+
+// In our "decatwips"
+static const CGFloat TILE_POS_X_DEFAULT = 0;
+static const CGFloat TILE_POS_Y_DEFAULT = 0;
+
+// "Tile" size here means the decatwip size of the part of the document
+// rendered into the pixel tile
+static const CGFloat TILE_WIDTH_DEFAULT = 500;
+static const CGFloat TILE_HEIGHT_DEFAULT = 500;
@interface MLOTestingTileParametersViewController : MLOViewController<MLOTestingTileSubviewControllerProtocol>
@property CGFloat contextWidth, contextHeight, tilePosX, tilePosY, tileWidth, tileHeight;