Revision ef8fa67a
Added by Leszek Koltunski about 2 years ago
| src/main/java/org/distorted/main/RubikSurfaceView.java | ||
|---|---|---|
| 36 | 36 |
private ObjectControl mObjectController; |
| 37 | 37 |
private OSInterface mInterface; |
| 38 | 38 |
private RubikRenderer mRenderer; |
| 39 |
private int mScreenWidth, mScreenHeight; |
|
| 40 | 39 |
private boolean mCreated; |
| 41 | 40 |
private boolean mShowStars; |
| 42 | 41 |
|
| ... | ... | |
| 44 | 43 |
|
| 45 | 44 |
void setScreenSize(int width, int height) |
| 46 | 45 |
{
|
| 47 |
mScreenWidth = width; |
|
| 48 |
mScreenHeight= height; |
|
| 49 | 46 |
mObjectController.setScreenSizeAndScaling(width,height, Math.min(width, (int)(0.75f*height))); |
| 50 | 47 |
|
| 51 | 48 |
if( !mCreated ) |
| ... | ... | |
| 77 | 74 |
mShowStars = true; |
| 78 | 75 |
} |
| 79 | 76 |
|
| 80 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
|
| 81 |
|
|
| 82 |
boolean isVertical() |
|
| 83 |
{
|
|
| 84 |
return mScreenHeight>mScreenWidth; |
|
| 85 |
} |
|
| 86 |
|
|
| 87 | 77 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
| 88 | 78 |
|
| 89 | 79 |
RubikRenderer getRenderer() |
Also available in: Unified diff
Minor