mirror of
https://github.com/openjdk/jdk.git
synced 2026-04-23 05:10:57 +00:00
7175704: [macosx] "8" PIT: NPE in GetDisplayMode fullscreen test
Reviewed-by: serb, leonidr
This commit is contained in:
parent
1fd51fa05e
commit
336948d514
@ -194,6 +194,9 @@ public class CGraphicsDevice extends GraphicsDevice {
|
||||
|
||||
@Override
|
||||
public void setDisplayMode(DisplayMode dm) {
|
||||
if (dm == null) {
|
||||
throw new IllegalArgumentException("Invalid display mode");
|
||||
}
|
||||
nativeSetDisplayMode(displayID, dm.getWidth(), dm.getHeight(), dm.getBitDepth(), dm.getRefreshRate());
|
||||
if (isFullScreenSupported() && getFullScreenWindow() != null) {
|
||||
getFullScreenWindow().setSize(dm.getWidth(), dm.getHeight());
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user