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:
parent
164cad105a
commit
b45fc0f664
1 changed files with 2 additions and 1 deletions
|
|
@ -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();
|
||||
}
|
||||
|
||||
//==============================================================================
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue