mirror of
https://github.com/openjdk/jdk.git
synced 2026-03-28 08:39:56 +00:00
Use scale factor of 1 for 1.1 printing
This commit is contained in:
parent
4d33aff715
commit
47c6d79fe5
@ -148,9 +148,7 @@ public class WindowsProgressBarUI extends BasicProgressBarUI
|
||||
barRectWidth = (int) Math.ceil(progressBar.getWidth() * scaleX);
|
||||
barRectHeight = (int) Math.ceil(progressBar.getHeight() * scaleY);
|
||||
} else {
|
||||
int dpi = java.awt.Toolkit.getDefaultToolkit().getScreenResolution();
|
||||
scaleX = (double) dpi / 96.0;
|
||||
scaleY = (double) dpi / 96.0;
|
||||
scaleX = scaleY = 1.0;
|
||||
barRectWidth = (int) Math.ceil(progressBar.getWidth() * scaleX);
|
||||
barRectHeight = (int) Math.ceil(progressBar.getHeight() * scaleY);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user