mirror of
https://github.com/moonlight-stream/moonlight-android.git
synced 2025-07-20 11:33:06 +00:00
Fix division by zero in ARC
This commit is contained in:
parent
88249ba8aa
commit
2160e87fef
@ -40,7 +40,7 @@ public class AppGridAdapter extends GenericGridAdapter<AppView.AppObject> {
|
|||||||
dp = LARGE_WIDTH_DP;
|
dp = LARGE_WIDTH_DP;
|
||||||
}
|
}
|
||||||
|
|
||||||
double scalingDivisor = ART_WIDTH_PX / (dp * (dpi / 160));
|
double scalingDivisor = ART_WIDTH_PX / (dp * (dpi / 160.0));
|
||||||
if (scalingDivisor < 1.0) {
|
if (scalingDivisor < 1.0) {
|
||||||
// We don't want to make them bigger before draw-time
|
// We don't want to make them bigger before draw-time
|
||||||
scalingDivisor = 1.0;
|
scalingDivisor = 1.0;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user