From 6fdae58012cd526cbe8934cdb48003a918fe91c6 Mon Sep 17 00:00:00 2001 From: khanhduytran0 Date: Wed, 2 Dec 2020 17:09:51 +0700 Subject: [PATCH] [On-screen mouse] fix size --- app/src/main/java/net/kdt/pojavlaunch/BaseMainActivity.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/net/kdt/pojavlaunch/BaseMainActivity.java b/app/src/main/java/net/kdt/pojavlaunch/BaseMainActivity.java index b2f640569f..83f684b658 100644 --- a/app/src/main/java/net/kdt/pojavlaunch/BaseMainActivity.java +++ b/app/src/main/java/net/kdt/pojavlaunch/BaseMainActivity.java @@ -176,8 +176,8 @@ public boolean onNavigationItemSelected(MenuItem menuItem) { @Override public void run() { ViewGroup.LayoutParams params = mousePointer.getLayoutParams(); - params.width = (int) (mousePointer.getWidth() / 100f * LauncherPreferences.PREF_MOUSESCALE); - params.height = (int) (mousePointer.getHeight() / 100f * LauncherPreferences.PREF_MOUSESCALE); + params.width = (int) (36 / 100f * LauncherPreferences.PREF_MOUSESCALE); + params.height = (int) (54 / 100f * LauncherPreferences.PREF_MOUSESCALE); } });