summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2003-09-26 18:30:24 +0000
committerMike Frysinger <vapier@gentoo.org>2003-09-26 18:30:24 +0000
commit2f5d31eb11eba9db7d7a3ea64b73b24f5ee96757 (patch)
treedc0bce3cea3aeb09f619d0aab74881d5026ed3f5 /games-emulation/gxmame
parentadd jit conf option #28322 (diff)
downloadhistorical-2f5d31eb11eba9db7d7a3ea64b73b24f5ee96757.tar.gz
historical-2f5d31eb11eba9db7d7a3ea64b73b24f5ee96757.tar.bz2
historical-2f5d31eb11eba9db7d7a3ea64b73b24f5ee96757.zip
fix video options #28461
Diffstat (limited to 'games-emulation/gxmame')
-rw-r--r--games-emulation/gxmame/ChangeLog5
-rw-r--r--games-emulation/gxmame/files/0.33-newxmame.patch166
2 files changed, 168 insertions, 3 deletions
diff --git a/games-emulation/gxmame/ChangeLog b/games-emulation/gxmame/ChangeLog
index 7cbf3c79ca77..87660c1c6f2c 100644
--- a/games-emulation/gxmame/ChangeLog
+++ b/games-emulation/gxmame/ChangeLog
@@ -1,9 +1,12 @@
# ChangeLog for games-emulation/gxmame
# Copyright 2002-2003 Gentoo Technologies, Inc.; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/games-emulation/gxmame/ChangeLog,v 1.3 2003/09/21 04:56:47 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/games-emulation/gxmame/ChangeLog,v 1.4 2003/09/26 18:30:24 vapier Exp $
*gxmame-0.33-r1 (21 Sep 2003)
+ 26 Sep 2003; Mike Frysinger <vapier@gentoo.org> :
+ Updated patch to also fix changing of video options #28461.
+
21 Sep 2003; Mike Frysinger <vapier@gentoo.org> :
Add patch to fix changing of cmdline options for hot rod controllers #29179.
diff --git a/games-emulation/gxmame/files/0.33-newxmame.patch b/games-emulation/gxmame/files/0.33-newxmame.patch
index da71ec76c180..3eaf8eabd60c 100644
--- a/games-emulation/gxmame/files/0.33-newxmame.patch
+++ b/games-emulation/gxmame/files/0.33-newxmame.patch
@@ -1,5 +1,167 @@
---- src/options.c.orig 2003-09-20 20:10:37.496519168 +1000
-+++ src/options.c 2003-09-20 21:00:37.709417480 +1000
+--- src/gxmame.h.orig 2003-09-21 13:00:00.000000000 -0500
++++ src/gxmame.h 2003-09-21 13:39:33.220657471 -0500
+@@ -645,6 +645,7 @@
+ gboolean list_mixer_plugins; /* list mixer plugins */
+ gboolean keyboard_leds; /* use keyboard leds */
+ gboolean dirty; /* dirty not in 0.61 pr1 */
++ gboolean newx11modeusage; /* for 0.72.1 -x11-mode changes */
+ gboolean xvext; /* xv extension 0.60 + patch from
+ Alastair M. Robinson*/
+ gboolean vidix; /* another target from Alastair M. Robinson
+--- src/mameio.c.orig 2003-09-21 13:00:45.000000000 -0500
++++ src/mameio.c 2003-09-21 13:03:07.000000000 -0500
+@@ -956,9 +956,14 @@
+ for (p=opt;(*p && (*p++ != ' ')););
+ version=atof(p);
+ g_free(opt);
++
++ /* version 0.72.1 introduces new syntax for the -x11-mode option */
++ if (version>=0.72)
++ available_options.newx11modeusage=TRUE;
+
+ /* do not test anymore if the executable is valid since its already tested previously */
+ /* to be able to load the 0.68 options */
++
+ if (version==0.68)
+ opt=g_strdup_printf("%s -showusage -noloadconfig 2>/dev/null",real_mame_executable);
+ else
+@@ -989,7 +994,17 @@
+ available_options.list_mixer_plugins = FALSE;
+ available_options.keyboard_leds = FALSE;
+ available_options.dirty = FALSE;
+- available_options.xvext = FALSE;
++/* available_options.xvext = FALSE; */
++ if (version>=0.72)
++ {
++ available_options.xvext=TRUE;
++ available_options.fullscreen=TRUE;
++ }
++ else
++ {
++ available_options.xvext = FALSE;
++ available_options.fullscreen = FALSE;
++ }
+ available_options.vidix = FALSE;
+ available_options.yuv = FALSE;
+ available_options.yv12 = FALSE;
+@@ -999,7 +1014,7 @@
+ available_options.x11joyname = FALSE;
+ available_options.joydevname = FALSE;
+ available_options.video_mode = FALSE;
+- available_options.fullscreen = FALSE;
++/* available_options.fullscreen = FALSE; */
+ available_options.cfgname = FALSE;
+ available_options.grabmouse = FALSE;
+ available_options.grabkeyboard = FALSE;
+--- src/options.c.orig 2003-09-21 13:03:18.000000000 -0500
++++ src/options.c 2003-09-21 14:00:12.360568312 -0500
+@@ -34,6 +34,7 @@
+ #include <gtk/gtk.h>
+
+ #include "gxmame.h"
++#include "mameio.h"
+ #include "options.h"
+ #include "io.h"
+ #include "callbacks.h"
+@@ -6267,7 +6268,8 @@
+ *vidix=NULL,
+ *geometry = NULL,
+ *newext = NULL;
+-
++ int x11mode = 0;
++
+ if (available_options.mitshm)
+ {
+ mitshm = g_strdup_printf("-%smitshm",(target->mitshm)?"":"no");
+@@ -6276,7 +6278,22 @@
+ /* put the new extention option (xv and vidix) in a string*/
+ if (target->xvgeom_flag && strcmp(target->geometry,""))
+ geometry = g_strdup_printf("-geometry %s",target->geometry);
+- newext = g_strdup_printf("%s " /* fullscreen */
++/* newext = g_strdup_printf("%s " fullscreen */
++ /* 0.72 removes -fullscreen option in favour of new */
++ /* -x11-mode values */
++ if (available_options.newx11modeusage)
++ {
++ newext = g_strdup_printf("%s " /* geometry */
++ "%s " /* yuv */
++ "%s", /* yv12 */
++ geometry?geometry:"",
++ available_options.yuv?((target->yuv)?"-yuv":"-noyuv"):"",
++ available_options.yv12?((target->yv12)?"-yv12":"-noyv12"):""
++ );
++ }
++ else
++ {
++ newext = g_strdup_printf("%s " /* fullscreen */
+ "%s " /* geometry */
+ "%s " /* yuv */
+ "%s", /* yv12 */
+@@ -6285,7 +6302,8 @@
+ available_options.yuv?((target->yuv)?"-yuv":"-noyuv"):"",
+ available_options.yv12?((target->yv12)?"-yv12":"-noyv12"):""
+ );
+-
++ }
++
+ if (available_options.xvext)
+ {
+ if (target->mitshm)
+@@ -6305,6 +6323,46 @@
+
+ Video_Mode_option = create_Video_Mode_Related_options_string();
+
++
++ /* 0.72 introduces new usage of -x11-mode: */
++ /* 0 = normal windowed */
++ /* 1 = DGA fullscreen */
++ /* 2 = Xv windowed */
++ /* 3 = Xv fullscreen */
++ if (available_options.newx11modeusage)
++ {
++ x11mode=target->x11_mode;
++ if (target->xvext)
++ {
++ x11mode=2;
++ if (target->xvfullscreen)
++ x11mode=3;
++ }
++
++ option_string = g_strdup_printf ("-x11-mode %i "
++ "-%scursor "
++ "%s " /* mitshm */
++ "%s " /* xvext */
++ "%s " /* newext */
++ "-%sxsync "
++ "-%sprivatecmap "
++ "-%sxil "
++ "-%smtxil "
++ "%s ", /* Video mode */
++ x11mode,
++ (target->cursor)?"":"no",
++ mitshm?mitshm:"",
++ vidix?vidix:"",
++ newext?newext:"",
++ (target->xsync)?"":"no",
++ (target->privatecmap)?"":"no",
++ (target->xil)?"":"no",
++ (target->mtxil)?"":"no",
++ Video_Mode_option?Video_Mode_option:""
++ );
++ }
++ else
++ {
+ option_string = g_strdup_printf ("-x11-mode %i "
+ "-%scursor "
+ "%s " /* mitshm */
+@@ -6328,6 +6386,7 @@
+ (target->mtxil)?"":"no",
+ Video_Mode_option?Video_Mode_option:""
+ );
++ }
+ g_free(Video_Mode_option);
+ g_free(xvext);
+ g_free(vidix);
@@ -6555,8 +6555,8 @@
"-%sanalogstick "
"%s " /* joy */