On Fri, 20 Feb 2026 09:03:55 GMT, Prasanta Sadhukhan <[email protected]> 
wrote:

>> Prasanta Sadhukhan has updated the pull request incrementally with one 
>> additional commit since the last revision:
>> 
>>   Review comment
>
> src/java.desktop/windows/classes/com/sun/java/swing/plaf/windows/WindowsProgressBarUI.java
>  line 153:
> 
>> 151:                 int dpi = 
>> java.awt.Toolkit.getDefaultToolkit().getScreenResolution();
>> 152:                 scaleX = (double) dpi / 96.0;
>> 153:                 scaleY = (double) dpi / 96.0;
> 
> Is there any other way to get scale factor that doesn't use AffineTransform?

Hmm. Do you really need it ? Why not just use scale of 1 if doing AWT 1.1 API 
printing.

The code in the 2D case  seems to be trying to handle on-screen hi-dpi pixel 
rounding and I'm not very sure that it's ideal but that is a somewhat separate 
can of worms.

-------------

PR Review Comment: https://git.openjdk.org/jdk/pull/29752#discussion_r2997869293

Reply via email to