On Mon, 8 May 2023 18:46:42 GMT, Alexey Ivanov <aiva...@openjdk.org> wrote:

>>> It may be useful to be able to run Java on previous versions though, yet 
>>> it's not a priority.
>> 
>> Then probably it is better to add a fallback since that method was added to 
>> the win 10 after GA, and it does not exist in the early version.
>
>> > It may be useful to be able to run Java on previous versions though, yet 
>> > it's not a priority.
>> 
>> Then probably it is better to add a fallback since that method was added to 
>> the win 10 after GA, and it does not exist in the early version.
> 
> But the earlier versions of Windows 10 are already unsupported, including the 
> one where the `OpenThemeDataForDpi` function was added.
> 
> If required, the fallback could be implemented under a new bug. ~~Anyway, I 
> don't have a strong opinion on this matter.~~

I think it's *unfeasible* to provide the fallback to keep the code simpler.

If `OpenThemeDataForDpi` isn't available, we cannot get per-DPI images. Then we 
have to fallback to using the DPI of the main display and scale up / down all 
the returned values and images.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/13701#discussion_r1227202738

Reply via email to