1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-02-07 04:10:08 +00:00

DPI correction for android.

This commit is contained in:
jules 2013-11-04 20:55:28 +00:00
parent 164cad105a
commit b45fc0f664

View file

@ -703,6 +703,7 @@ void Desktop::Displays::findDisplays (float masterScale)
android.screenHeight) / masterScale;
d.isMain = true;
d.scale = masterScale;
d.dpi = android.dpi;
displays.add (d);
}
@ -715,7 +716,7 @@ JUCE_JNI_CALLBACK (JUCE_ANDROID_ACTIVITY_CLASSNAME, setScreenSize, void, (JNIEnv
android.screenHeight = screenHeight;
android.dpi = dpi;
const_cast <Desktop::Displays&> (Desktop::getInstance().getDisplays()).refresh();
const_cast<Desktop::Displays&> (Desktop::getInstance().getDisplays()).refresh();
}
//==============================================================================