IDEA-180135 UI scale factor is wrong on Windows with latest EAP

Approximate the scale more accurately.
This commit is contained in:
Anton Tarasov
2017-11-20 13:11:36 +03:00
parent d3ba1c22f0
commit aa27eeddff
@@ -408,7 +408,7 @@ public class JBUI {
}
private static float discreteScale(float scale) {
return (float)(Math.floor(scale / DISCRETE_SCALE_RESOLUTION) * DISCRETE_SCALE_RESOLUTION);
return Math.round(scale / DISCRETE_SCALE_RESOLUTION) * DISCRETE_SCALE_RESOLUTION;
}
/**