<AWT Dev> RFR: 8267430: GraphicsDevice.setDisplayMode(REFRESH_RATE_UNKNOWN) throws AE: Unable to set display mode! [v2]
Phil Race
prr at openjdk.java.net
Mon Jun 7 16:17:19 UTC 2021
On Mon, 7 Jun 2021 16:07:20 GMT, Alexander Zvegintsev <azvegint at openjdk.org> wrote:
>> Phil Race has updated the pull request incrementally with one additional commit since the last revision:
>>
>> 8267430: GraphicsDevice.setDisplayMode(REFRESH_RATE_UNKNOWN) throws IAE: Unable to set display mode
>
> test/jdk/java/awt/GraphicsDevice/DisplayModes/UnknownRefrshRateTest.java line 44:
>
>> 42: for (GraphicsDevice d : devices) {
>> 43:
>> 44: if (!d.isDisplayChangeSupported()) {
>
> BTW, do we want to run this test on other platforms?
>
> If so, we need to modify test. Because `isDisplayChangeSupported()` may return true on Windows and Linux only if we have a fullscreen window showing.
I don't see the harm.
-------------
PR: https://git.openjdk.java.net/jdk/pull/4373
More information about the awt-dev
mailing list