ANDROID: Sync 3D backend HiDPI with 2D one
This commit is contained in:
parent
f12409d321
commit
04e05e7a5f
2 changed files with 12 additions and 0 deletions
|
@ -970,6 +970,17 @@ void AndroidGraphics3dManager::clearScreen(FixupType type, byte count) {
|
|||
_force_redraw = true;
|
||||
}
|
||||
|
||||
float AndroidGraphics3dManager::getHiDPIScreenFactor() const {
|
||||
// TODO: Use JNI to get DisplayMetrics.density, which according to the documentation
|
||||
// seems to be what we want.
|
||||
// "On a medium-density screen, DisplayMetrics.density equals 1.0; on a high-density
|
||||
// screen it equals 1.5; on an extra-high-density screen, it equals 2.0; and on a
|
||||
// low-density screen, it equals 0.75. This figure is the factor by which you should
|
||||
// multiply the dp units in order to get the actual pixel count for the current screen."
|
||||
|
||||
return 2.f;
|
||||
}
|
||||
|
||||
AndroidCommonGraphics::State AndroidGraphics3dManager::getState() const {
|
||||
AndroidCommonGraphics::State state;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue