mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-09-25 07:30:48 +00:00
committed by
Jindra Petřík
parent
81c73c7fe5
commit
235e44fc30
@@ -130,9 +130,9 @@ public class ZoomPanel extends JPanel implements MediaDisplayListener {
|
||||
}
|
||||
}
|
||||
|
||||
private static double roundZoom(double realZoom, int mantisa) {
|
||||
private static double roundZoom(double realZoom, int mantissa) {
|
||||
double l10 = Math.log10(realZoom);
|
||||
int lg = (int) (-Math.floor(l10) + mantisa - 1);
|
||||
int lg = (int) (-Math.floor(l10) + mantissa - 1);
|
||||
if (lg < 0) {
|
||||
lg = 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user