diff options
author | Edwin Groothuis <edwin@FreeBSD.org> | 2004-02-28 11:56:49 +0000 |
---|---|---|
committer | Edwin Groothuis <edwin@FreeBSD.org> | 2004-02-28 11:56:49 +0000 |
commit | f3b4a67b93f2e2160c4402d2e5b9bc1ef1087522 (patch) | |
tree | e787343ee37f6eda0916c33c8f958ab34e75d3ca /games/xrobots | |
parent | d289f92dd88aff56410c9ff0b5c58b8ac8e38c77 (diff) | |
download | ports-f3b4a67b93f2e2160c4402d2e5b9bc1ef1087522.tar.gz ports-f3b4a67b93f2e2160c4402d2e5b9bc1ef1087522.zip |
Really fix games/xrobots on !i386.
Notes
Notes:
svn path=/head/; revision=102388
Diffstat (limited to 'games/xrobots')
-rw-r--r-- | games/xrobots/files/patch-main.c | 52 |
1 files changed, 48 insertions, 4 deletions
diff --git a/games/xrobots/files/patch-main.c b/games/xrobots/files/patch-main.c index 882172cf2dca..b42b233b62d9 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); |