1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-02 06:03:50 +00:00

- Fix crash when there's no xrandr support

PR:		207113
Submitted by:	amdmi3
This commit is contained in:
Danilo Egea Gondolfo 2016-02-15 23:14:37 +00:00
parent a70e47a5cc
commit ed601505eb
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=408963
2 changed files with 17 additions and 0 deletions

View File

@ -3,6 +3,7 @@
PORTNAME= doomsday
PORTVERSION= 1.15.8
PORTREVISION= 1
CATEGORIES= games
MASTER_SITES= SF/deng/Doomsday%20Engine/${PORTVERSION}
DISTNAME= ${PORTNAME}-stable-${PORTVERSION}

View File

@ -0,0 +1,16 @@
--- doomsday/libgui/src/displaymode_x11.cpp.orig 2016-02-01 03:37:12 UTC
+++ doomsday/libgui/src/displaymode_x11.cpp
@@ -54,8 +54,12 @@ public:
/**
* Queries all the available modes in the display configuration.
*/
- RRInfo() : _numSizes(0)
+ RRInfo() : _conf(NULL), _numSizes(0)
{
+ int dummy;
+ if (!XRRQueryExtension(QX11Info::display(), &dummy, &dummy))
+ return; // Not available.
+
_conf = XRRGetScreenInfo(QX11Info::display(), QX11Info::appRootWindow());
if(!_conf) return; // Not available.