mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-180135 UI scale factor is wrong on Windows with latest EAP
Approximate the scale more accurately.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user