mirror of
https://github.com/AngelAuraMC/Amethyst-Android.git
synced 2025-09-16 08:05:34 -04:00
Fix[Tools]: avoid going over 100% resolution
This commit is contained in:
parent
27a317e03b
commit
1fd14e29cf
@ -845,7 +845,7 @@ public final class Tools {
|
||||
|
||||
public static int getDisplayFriendlyRes(int displaySideRes, float scaling){
|
||||
displaySideRes *= scaling;
|
||||
if(displaySideRes % 2 != 0) displaySideRes ++;
|
||||
if(displaySideRes % 2 != 0) displaySideRes --;
|
||||
return displaySideRes;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user