mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-09-04 03:35:19 +02:00
Oops, cast to float.
This commit is contained in:
@@ -219,7 +219,7 @@ public class NativeActivity extends Activity {
|
||||
getWindowManager().getDefaultDisplay().getMetrics(metrics);
|
||||
int dpi = metrics.densityDpi;
|
||||
// We only use dpi to calculate the width. Smaller aspect ratios have giant text despite high DPI.
|
||||
dpi = dpi * (srcWidth/srcHeight) / (16/9); // Adjust to 16:9
|
||||
dpi = dpi * ((float)srcWidth/(float)srcHeight) / (16.0/9.0); // Adjust to 16:9
|
||||
|
||||
String deviceType = Build.MANUFACTURER + ":" + Build.MODEL;
|
||||
String languageRegion = Locale.getDefault().getLanguage() + "_" + Locale.getDefault().getCountry();
|
||||
|
||||
Reference in New Issue
Block a user