Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 26 Apr 2019 18:30:35 +0000 (UTC)
From:      Dmitry Marakasov <amdmi3@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-branches@freebsd.org
Subject:   svn commit: r500124 - in branches/2019Q2/games/redeclipse: . files
Message-ID:  <201904261830.x3QIUZVn045412@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: amdmi3
Date: Fri Apr 26 18:30:35 2019
New Revision: 500124
URL: https://svnweb.freebsd.org/changeset/ports/500124

Log:
  MFH: r500123
  
  - Add upstream patch to fix HUD disappearing after takin a screenshot
  
  PR:		237531
  Submitted by:	voidanix@420blaze.it
  Approved by:	ports-secteam (with hat)

Added:
  branches/2019Q2/games/redeclipse/files/patch-config_setup.cfg
     - copied unchanged from r500123, head/games/redeclipse/files/patch-config_setup.cfg
Modified:
  branches/2019Q2/games/redeclipse/Makefile
Directory Properties:
  branches/2019Q2/   (props changed)

Modified: branches/2019Q2/games/redeclipse/Makefile
==============================================================================
--- branches/2019Q2/games/redeclipse/Makefile	Fri Apr 26 18:29:40 2019	(r500123)
+++ branches/2019Q2/games/redeclipse/Makefile	Fri Apr 26 18:30:35 2019	(r500124)
@@ -4,6 +4,7 @@
 PORTNAME=	redeclipse
 PORTVERSION=	1.6.0
 DISTVERSIONPREFIX=	v
+PORTREVISION=	1
 CATEGORIES=	games
 
 MAINTAINER=	amdmi3@FreeBSD.org
@@ -34,6 +35,7 @@ OPTIONS_MULTI_COMPONENTS=CLIENT DEDICATED
 OPTIONS_DEFAULT=	CLIENT DEDICATED OPTIMIZED_CFLAGS
 
 CLIENT_DESC=		Build client
+CLIENT_USES=		gl sdl
 CLIENT_USE=		GL=gl SDL=image2,mixer2,sdl2 XORG=x11
 CLIENT_ALL_TARGET=	client
 CLIENT_PLIST_FILES=	bin/${PORTNAME} libexec/${PORTNAME} \

Copied: branches/2019Q2/games/redeclipse/files/patch-config_setup.cfg (from r500123, head/games/redeclipse/files/patch-config_setup.cfg)
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ branches/2019Q2/games/redeclipse/files/patch-config_setup.cfg	Fri Apr 26 18:30:35 2019	(r500124, copy of r500123, head/games/redeclipse/files/patch-config_setup.cfg)
@@ -0,0 +1,29 @@
+Upstream commits ec1e32e1410f51c336e893ecfb56f728fdcc1a92,
+bb4b6862f802c040ef67484942e91f7c3d88e649: fix hiding HUD
+permanently when HUDless screenshot is taken.
+diff --git config/setup.cfg config/setup.cfg
+index 4edcf170..e6888f81 100644
+--- config/setup.cfg
++++ config/setup.cfg
+@@ -316,9 +316,19 @@ dobindsearch = [
+     [search@[arg2]binds] $arg1 5 "^f{" "}" (? $textkeyseps (? $textkeyimages "|" ", ") (? $textkeyimages "" " ")) (? $textkeyseps (? $textkeyimages "|" " or ") (? $textkeyimages "" " "))
+ ]
+ 
++//  screenshotnohud: Takes a screenshot without a hud
++//    The screenshot and the hud showing are delayed to prevent any issues since
++//    the game skips a few frames while taking a screenshot.
++canscreenshotnohud = 1
+ screenshotnohud = [
+-    sleep 50 [ screenshot; showhud @showhud ]
+-    showhud 0
++    if $canscreenshotnohud [
++        canscreenshotnohud = 0 // Lock screenshotting without a hud for the 50ms duration
++        hudwasshown = $showhud // Previous $showhud state
++        if $hudwasshown [showhud 0] // Hide hud if it was shown
++        sleep 25 [screenshot]
++        // Restore hud if it was shown and restore screenshotting.
++        sleep 50 [showhud $hudwasshown; canscreenshotnohud = 1]
++    ]
+ ]
+ 
+ listcomplete vdelta [



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