mirror of
https://github.com/AngelAuraMC/Amethyst-Android.git
synced 2025-09-15 15:48:26 -04:00
Fix button too big
This commit is contained in:
parent
e5fdd21284
commit
c4737a212c
@ -349,7 +349,7 @@ public final class Tools
|
||||
// 921600 = 1280 * 720, default scale
|
||||
// TODO better way to scaling
|
||||
// float scaledDp = dp / 921600 * CallbackBridge.windowWidth * CallbackBridge.windowHeight;
|
||||
return (dp /* scaledDp */ * ctx.getResources().getDisplayMetrics().densityDpi);
|
||||
return (dp /* scaledDp */ * ctx.getResources().getDisplayMetrics().density);
|
||||
}
|
||||
|
||||
public static void copyAssetFile(Context ctx, String fileName, String output, boolean overwrite) throws Exception
|
||||
|
Loading…
x
Reference in New Issue
Block a user