Revision b1178f5f
Added by Leszek Koltunski over 1 year ago
src/main/java/org/distorted/config/ConfigSurfaceView.java | ||
---|---|---|
36 | 36 |
{ |
37 | 37 |
mScreenWidth = width; |
38 | 38 |
mScreenHeight= height; |
39 |
mObjectController.setScreenSize(width,height);
|
|
39 |
mObjectController.setScreenSizeAndScaling(width,height, Math.min(width,height));
|
|
40 | 40 |
mObjectController.setObjectScale(1.00f); |
41 | 41 |
|
42 | 42 |
if( !mCreated ) |
Also available in: Unified diff
Move the control of object scaling out the objectlib.
Thee xact way the object is scaled needs to be decided in the app, as only the app knows that e.g. in the Rubik main screen, if it is a square, then obejct needs to be a bit smaller than in case of Config screen (if that one happens to be a square)