On Mon, 2 May 2022 19:53:44 GMT, Alisen Chung <ach...@openjdk.org> wrote:

>> Changed the drawing area to be increased by 0.5 on the left side to prevent 
>> clipping
>
> Alisen Chung has updated the pull request incrementally with one additional 
> commit since the last revision:
> 
>   updated test

src/java.desktop/share/classes/javax/swing/border/EtchedBorder.java line 179:

> 177: 
> 178:         g.translate(-((int) (at.getScaleX()*x+at.getTranslateX())),
> 179:                 -((int) (at.getScaleY()*y+at.getTranslateY())));

You used different values to move the translate at lines 170-171: `Math.ceil` 
is missing here. It's better to save the values above to make sure the 
translate is restored correctly.

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

PR: https://git.openjdk.java.net/jdk/pull/7449

Reply via email to