Revision ac4c7a1d
Added by Leszek Koltunski about 1 year ago
src/main/java/org/distorted/tutorials/TutorialObjectLibInterface.java | ||
---|---|---|
158 | 158 |
TutorialScreen state = act.getState(); |
159 | 159 |
state.reddenLock(act); |
160 | 160 |
} |
161 |
|
|
162 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
|
163 |
|
|
164 |
public int getScreenDensity() |
|
165 |
{ |
|
166 |
DisplayMetrics dm = new DisplayMetrics(); |
|
167 |
mAct.get().getWindowManager().getDefaultDisplay().getMetrics(dm); |
|
168 |
return dm.densityDpi; |
|
169 |
} |
|
170 | 161 |
} |
Also available in: Unified diff
Separate a OSInterface from LibInterface