On Wed, 12 Oct 2022 21:16:47 GMT, Sergey Bylokhov <s...@openjdk.org> wrote:

>> @mrserb Thank for the suggestion. Are you suggesting that same 
>> transformations be applied for width, height and additionally to x&y 
>> translations? 
>> https://github.com/openjdk/jdk/blob/ec4fb47b90c9737dfdc285ebe98367a221c90c79/src/java.desktop/share/classes/sun/java2d/SunGraphics2D.java#L373
>
> The methods like Rigion.dimAdd/clipScale should be used everywhere the 
> overflow is possible.

Thank you, @mrserb, for your suggestion. I didn't know about those methods.

We already have [JDK-8294680](https://bugs.openjdk.org/browse/JDK-8294680) to 
refactor this code. If you don't object, I'd rather postpone updating the 
calculations to a later time. We should absolutely re-use the existing code if 
it does the same thing.

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

PR: https://git.openjdk.org/jdk/pull/10274

Reply via email to