We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 65d0682 commit 3630aa2Copy full SHA for 3630aa2
doomsday/sdk/libgui/src/displaymode_x11.cpp
@@ -54,8 +54,11 @@ class RRInfo
54
/**
55
* Queries all the available modes in the display configuration.
56
*/
57
- RRInfo() : _numSizes(0)
+ RRInfo() : _conf(NULL), _numSizes(0)
58
{
59
+ int dummy;
60
+ if (!XRRQueryExtension(QX11Info::display(), &dummy, &dummy)) return; // Not available.
61
+
62
_conf = XRRGetScreenInfo(QX11Info::display(), QX11Info::appRootWindow());
63
if(!_conf) return; // Not available.
64
0 commit comments