On 2010/01/03 10:14, Jacob Meuser wrote:
> On Sun, Jan 03, 2010 at 09:28:04AM +0000, Stuart Henderson wrote:
> > On 2010/01/03 08:48, Jacob Meuser wrote:
> > > 
> > > *sigh*
> > > 
> > > I spent quite some brain cycles on sndio backend for xboing, then went
> > > to test it only to find out xboing doesn't run on my machine.  tracked
> > > it down to failures with XLoadQueryFont() in xboing/init.c.
> > > 
> > > does it work for anyone else?
> > 
> > DESCR mentions it needs an 8-bit colour mode; though actually it seems
> > to work if you start it as 'xboing -usedefcmap'.
> 
> yep, -usedefcmap does the trick.  thanks.

I suppose it would make sense to do something like this then..

Index: Makefile
===================================================================
RCS file: /cvs/ports/games/xboing/Makefile,v
retrieving revision 1.24
diff -u -p -r1.24 Makefile
--- Makefile    10 Aug 2009 06:31:43 -0000      1.24
+++ Makefile    3 Jan 2010 11:11:38 -0000
@@ -4,7 +4,7 @@ COMMENT=        blockout style game for X11
 
 V=             2.4
 DISTNAME=      xboing${V}
-PKGNAME=       xboing-${V}p2
+PKGNAME=       xboing-${V}p3
 
 CATEGORIES=    games
 
@@ -15,7 +15,7 @@ PERMIT_PACKAGE_FTP=   Yes
 PERMIT_DISTFILES_CDROM=        Yes
 PERMIT_DISTFILES_FTP=  Yes
 
-WANTLIB=       X11 Xau Xdmcp Xext Xpm c m ossaudio pthread-stubs xcb
+WANTLIB=       X11 Xau Xdmcp Xext Xpm c m ossaudio
 
 MASTER_SITES=  ${MASTER_SITE_XCONTRIB:=games/}
 
Index: patches/patch-init_c
===================================================================
RCS file: /cvs/ports/games/xboing/patches/patch-init_c,v
retrieving revision 1.2
diff -u -p -r1.2 patch-init_c
--- patches/patch-init_c        7 Dec 2007 10:25:46 -0000       1.2
+++ patches/patch-init_c        3 Jan 2010 11:11:38 -0000
@@ -1,6 +1,6 @@
 $OpenBSD: patch-init_c,v 1.2 2007/12/07 10:25:46 ajacoutot Exp $
---- init.c.orig        Fri Nov 22 02:28:46 1996
-+++ init.c     Fri Dec  7 09:53:24 2007
+--- init.c.orig        Fri Nov 22 01:28:46 1996
++++ init.c     Sun Jan  3 11:07:53 2010
 @@ -438,7 +438,7 @@ static void HandleDisplayErrors(displayName)
                WarningMessage("Your X Window system display variable is not 
set.");
        else
@@ -10,3 +10,46 @@ $OpenBSD: patch-init_c,v 1.2 2007/12/07 
                WarningMessage(string);
        }
  }
+@@ -474,7 +474,7 @@ static void PrintUsage()
+               "              [-speed <1-9>] [-scores] [-keys] [-sound] 
[-setup]",
+               " [-nosfx]",
+               "              [-grab] [-maxvol <1-100>] [-startlevel <1-MAX>]",
+-              " [-usedefcmap]",
++              " [-no-usedefcmap]",
+               "              [-nickname <name>] [-noicon]");
+ 
+       /* Exit now */
+@@ -551,7 +551,7 @@ static void PrintHelp()
+         "    -setup                  - Print setup information.\n",
+         "    -nosfx                  - Do not use some special effects.\n",
+         "    -grab                   - Turn ON pointer grab.\n",
+-        "    -usedefcmap             - Use the default colourmap.\n",
++        "    -no-usedefcmap          - Don't use the default colourmap.\n",
+               "    -nickname <name>        - Use nickname instead of real 
name.\n",
+         "    -noicon                 - Do not create a custom icon.\n",
+         "    -display <display>      - Set the display for the game.\n");
+@@ -599,7 +599,7 @@ static void InitialiseSettings()
+       syncOn = False;
+       debug = False;
+       grabPointer = False;
+-      useDefaultColourmap = False;
++      useDefaultColourmap = True;
+ 
+       /* This will force the use of the users real name */
+       SetNickName("");
+@@ -744,12 +744,12 @@ static void ParseCommandLine(argv, argc)
+                                       SetNickName(argv[i]);
+                       } else PrintUsage();
+ 
+-              } else if (!compareArgument(argv[i], "-usedefcmap", 10))
++              } else if (!compareArgument(argv[i], "-no-usedefcmap", 10))
+               {
+                       /* Try to use the default colourmap */
+-                      useDefaultColourmap = True;
++                      useDefaultColourmap = False;
+ 
+-                      DEBUG("Using default colourmap please.")
++                      DEBUG("Not using default colourmap.")
+ 
+               } else if (!compareArgument(argv[i], "-speed", 5))
+               {
Index: patches/patch-xboing_man
===================================================================
RCS file: patches/patch-xboing_man
diff -N patches/patch-xboing_man
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ patches/patch-xboing_man    3 Jan 2010 11:11:38 -0000
@@ -0,0 +1,30 @@
+$OpenBSD$
+--- xboing.man.orig    Sun Jan  3 11:09:12 2010
++++ xboing.man Sun Jan  3 11:10:26 2010
+@@ -45,7 +45,7 @@
+ xboing \- An X Window System based blockout clone. V2.4
+ .SH SYNOPSIS
+ .B xboing 
+-[-version] [-usage] [-help] [-sync] [-display <displayName>] [-speed <1-10>] 
[-scores] [-keys] [-sound] [-setup] [-nosfx] [-grab] [-maxvol <1-100>] 
[-startlevel <1-MAXLEVELS>] [-usedefcmap] [-nickname <name>] [-noicon]
++[-version] [-usage] [-help] [-sync] [-display <displayName>] [-speed <1-10>] 
[-scores] [-keys] [-sound] [-setup] [-nosfx] [-grab] [-maxvol <1-100>] 
[-startlevel <1-MAXLEVELS>] [-no-usedefcmap] [-nickname <name>] [-noicon]
+ .IP
+ -speed <n>         - The game speed, 1 - 9. 9=Fast
+ .br
+@@ -73,7 +73,7 @@ xboing \- An X Window System based blockout clone. V2.
+ .br
+ -grab              - Turn pointer grabbing on
+ .br
+--usedefcmap        - Use the default colourmap
++-no-usedefcmap     - Don't use the default colourmap
+ .br
+ -nickname <name>   - Use nickname instead of real one
+ .br
+@@ -178,7 +178,7 @@ The nosfx option will turn OFF special effects. The sp
+ 
+ The grab option will tell xboing to grab the mouse pointer when the game is 
visible. Pointer grabbing has the effect of stopping you move the pointer 
outside the game window. This is useful as it constrains the mouse and you 
don't get colourmap flashes. The default is Off.
+ 
+-The usedefcmap option will make xboing try to use the default colourmap. This 
will be fine if the default colourmap is reasonabily empty (ie: 200 free colour 
cells!). If you have a complex picture on your background then this option will 
not work and xboing will be unable to allocate enough colours.
++Unless the no-usedefcmap option is used, xboing will try to use the default 
colourmap. This will be fine if the default colourmap is reasonabily empty (ie: 
200 free colour cells!). If you have a complex picture on your background in 
8-bit colour, then this option will be needed otherwise xboing will be unable 
to allocate enough colours.
+ 
+ The nickname option allows you to specify a nick name for you instead of 
using your real name found in the password file. This can be useful for hiding 
your identity. Please note that I store the user id in the highscore file and 
use that for checking and sorting. You will still appear only once in the 
global highscore table.
+ 
Index: pkg/DESCR
===================================================================
RCS file: /cvs/ports/games/xboing/pkg/DESCR,v
retrieving revision 1.4
diff -u -p -r1.4 DESCR
--- pkg/DESCR   7 Dec 2007 10:25:46 -0000       1.4
+++ pkg/DESCR   3 Jan 2010 11:11:38 -0000
@@ -2,4 +2,3 @@ XBoing is a blockout type game where you
 to bounce a ball around the game area blowing up blocks with the ball. 
 You win by obtaining points for each block destroyed and each level
 completed. The person with the highest score wins.
-Note that XBoing can only be started on 8-bit color mode display.

Reply via email to