On Mon, 12 Jun 2023 20:23:00 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. >> >> 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. > If required, the fallback could be implemented under a new bug. The compatibility problem was reported on the [client-libs-dev mailing list](https://mail.openjdk.org/pipermail/client-libs-dev/2023-November/016360.html). It is tracked as [JDK-8321151](https://bugs.openjdk.org/browse/JDK-8321151). ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/13701#discussion_r1422613098