Skip to content

Commit 7e5837b

Browse files
author
duke
committed
Backport 18190519e73705281adf3f94d710d000e75b1729
1 parent 60e9784 commit 7e5837b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/java.desktop/unix/native/libawt_xawt/awt/awt_GraphicsEnv.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1747,7 +1747,7 @@ Java_sun_awt_X11GraphicsDevice_initXrandrExtension
17471747
// ---------------------------------------------------
17481748
// display mode change via XRRSetCrtcConfig
17491749
// ---------------------------------------------------
1750-
1750+
#if !defined(NO_XRANDR)
17511751
static jint refreshRateFromModeInfo(const XRRModeInfo *modeInfo) {
17521752
if (!modeInfo->hTotal || !modeInfo->vTotal) {
17531753
return 0;
@@ -2031,6 +2031,7 @@ static void xrrChangeDisplayMode(jint screen, jint width, jint height, jint refr
20312031
}
20322032
awt_XRRFreeScreenResources(res);
20332033
}
2034+
#endif
20342035

20352036
// ---------------------------------------------------
20362037
// display mode change via XRRSetCrtcConfig

0 commit comments

Comments
 (0)