提交 c7159c68 编写于 作者: P prr

7145508: java.awt.GraphicsDevice.get/setDisplayMode behavior is incorrect when...

7145508: java.awt.GraphicsDevice.get/setDisplayMode behavior is incorrect when no display is present
Reviewed-by: bae, serb
上级 8485cb77
......@@ -375,7 +375,11 @@ public class X11GraphicsDevice
@Override
public synchronized DisplayMode getDisplayMode() {
if (isFullScreenSupported()) {
return getCurrentDisplayMode(screen);
DisplayMode mode = getCurrentDisplayMode(screen);
if (mode == null) {
mode = getDefaultDisplayMode();
}
return mode;
} else {
if (origDisplayMode == null) {
origDisplayMode = getDefaultDisplayMode();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册