Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 15 Feb 2016 23:14:37 +0000 (UTC)
From:      Danilo Egea Gondolfo <danilo@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r408963 - in head/games/doomsday: . files
Message-ID:  <201602152314.u1FNEbg7058141@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: danilo
Date: Mon Feb 15 23:14:37 2016
New Revision: 408963
URL: https://svnweb.freebsd.org/changeset/ports/408963

Log:
  - Fix crash when there's no xrandr support
  
  PR:		207113
  Submitted by:	amdmi3

Added:
  head/games/doomsday/files/
  head/games/doomsday/files/patch-doomsday_libgui_src_displaymode__x11.cpp   (contents, props changed)
Modified:
  head/games/doomsday/Makefile

Modified: head/games/doomsday/Makefile
==============================================================================
--- head/games/doomsday/Makefile	Mon Feb 15 22:57:14 2016	(r408962)
+++ head/games/doomsday/Makefile	Mon Feb 15 23:14:37 2016	(r408963)
@@ -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}

Added: head/games/doomsday/files/patch-doomsday_libgui_src_displaymode__x11.cpp
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/games/doomsday/files/patch-doomsday_libgui_src_displaymode__x11.cpp	Mon Feb 15 23:14:37 2016	(r408963)
@@ -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.
+ 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201602152314.u1FNEbg7058141>