summaryrefslogtreecommitdiffstats
path: root/games/xrobots
diff options
context:
space:
mode:
authoredwin <edwin@FreeBSD.org>2004-02-28 11:56:49 +0000
committeredwin <edwin@FreeBSD.org>2004-02-28 11:56:49 +0000
commit1566856327499a44df3d4684dd35d57180d893ff (patch)
tree725aa831887876a6799e5b8faa07387950af02db /games/xrobots
parent9e5e6e91246111f99ccf2bb514e85653e8de8ca0 (diff)
downloadFreeBSD-ports-1566856327499a44df3d4684dd35d57180d893ff.zip
FreeBSD-ports-1566856327499a44df3d4684dd35d57180d893ff.tar.gz
Really fix games/xrobots on !i386.
Diffstat (limited to 'games/xrobots')
-rw-r--r--games/xrobots/files/patch-main.c52
1 files changed, 48 insertions, 4 deletions
diff --git a/games/xrobots/files/patch-main.c b/games/xrobots/files/patch-main.c
index 882172c..b42b233 100644
--- a/games/xrobots/files/patch-main.c
+++ b/games/xrobots/files/patch-main.c
@@ -1,11 +1,55 @@
---- main.c.orig Sat Feb 28 22:37:53 2004
-+++ main.c Sat Feb 28 22:38:30 2004
-@@ -170,7 +170,7 @@
+--- main.c.orig Thu Jan 22 06:34:05 1998
++++ main.c Sat Feb 28 03:53:04 2004
+@@ -170,25 +170,25 @@
{"-scorefile","scorefile",XrmoptionSepArg, NULL },
};
-static XtResource application_resources[] = {
+XtResource application_resources[] = {
{"foreground", "Foreground", XtRPixel, sizeof(Pixel),
- (Cardinal)&fg, XtRString, (caddr_t) "Black"},
+- (Cardinal)&fg, XtRString, (caddr_t) "Black"},
++ NULL, XtRString, (caddr_t) "Black"},
{"background", "Background", XtRPixel, sizeof(Pixel),
+- (Cardinal)&bg, XtRString, (caddr_t) "White"},
++ NULL, XtRString, (caddr_t) "White"},
+ {"spiffy", "Spiffy", XtRBoolean, sizeof(Boolean),
+- (Cardinal)&spiffy, XtRString, (caddr_t) "True"},
++ NULL, XtRString, (caddr_t) "True"},
+ {"autoteleport", "Autoteleport", XtRBoolean, sizeof(Boolean),
+- (Cardinal)&autoteleport, XtRString, (caddr_t) "False"},
++ NULL, XtRString, (caddr_t) "False"},
+ {"autoteleportalways", "Autoteleportalways", XtRBoolean, sizeof(Boolean),
+- (Cardinal)&autoteleportalways, XtRString, (caddr_t) "False"},
++ NULL, XtRString, (caddr_t) "False"},
+ {"showmovement", "Showmovement", XtRBoolean, sizeof(Boolean),
+- (Cardinal)&showjumps, XtRString, (caddr_t) "True"},
++ NULL, XtRString, (caddr_t) "True"},
+ {"diewaiting", "Diewaiting", XtRBoolean, sizeof(Boolean),
+- (Cardinal)&diewaiting, XtRString, (caddr_t) "False"},
++ NULL, XtRString, (caddr_t) "False"},
+ {"translations","Translations", XtRTranslationTable, sizeof(XtTranslations),
+- (Cardinal)&translations, XtRString, (caddr_t)translations_str},
++ NULL, XtRString, (caddr_t)translations_str},
+ {"scorefile","Scorefile", XtRString, sizeof(String),
+- (Cardinal)&score_filename, XtRString, (caddr_t)SCORE_FILE},
++ NULL, XtRString, (caddr_t)SCORE_FILE},
+ };
+
+ /*----------------------------------------------------------------------*/
+@@ -205,6 +205,16 @@
+ new_game_command;
+
+ srandom(getpid());
++
++ application_resources[0].resource_offset=(Cardinal)&fg;
++ application_resources[1].resource_offset=(Cardinal)&bg;
++ application_resources[2].resource_offset=(Cardinal)&spiffy;
++ application_resources[3].resource_offset=(Cardinal)&autoteleport;
++ application_resources[4].resource_offset=(Cardinal)&autoteleportalways;
++ application_resources[5].resource_offset=(Cardinal)&showjumps;
++ application_resources[6].resource_offset=(Cardinal)&diewaiting;
++ application_resources[7].resource_offset=(Cardinal)&translations;
++ application_resources[8].resource_offset=(Cardinal)&score_filename;
+
+ top_shell = XtInitialize(argv[0], "xrobots", options, XtNumber(options),
+ (int *)&argc, argv);
OpenPOWER on IntegriCloud