distfile gone and missing licenses, remove them

This commit is contained in:
wilfried 2004-01-11 11:44:18 +00:00
parent a66365bfed
commit ca64b6185f
12 changed files with 1 additions and 457 deletions

View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.105 2003/11/27 06:09:12 jolan Exp $
# $OpenBSD: Makefile,v 1.106 2004/01/11 11:44:18 wilfried Exp $
# $FreeBSD: Makefile,v 1.91 1997/11/18 09:29:31 tg Exp $
#
@ -115,10 +115,8 @@
# SUBDIR += uqmcontent
SUBDIR += vectoroids
SUBDIR += wanderer
SUBDIR += wmeyes
SUBDIR += wmminichess
SUBDIR += wmtictactoe
SUBDIR += wmtimebomb
SUBDIR += xasteroids
SUBDIR += xbat
SUBDIR += xbattle

View File

@ -1,25 +0,0 @@
# $OpenBSD: Makefile,v 1.10 2003/02/26 12:00:43 wilfried Exp $
COMMENT= 'wm-dockapp; xeyes variant'
DISTNAME= wmeyes
PKGNAME= ${DISTNAME}-0.0
CATEGORIES= games x11 x11/windowmaker
MAINTAINER= Peter Stromberg <wilfried@openbsd.org>
PERMIT_PACKAGE_CDROM= "no license"
PERMIT_PACKAGE_FTP= "no license"
PERMIT_DISTFILES_CDROM= "no license"
PERMIT_DISTFILES_FTP= "no license"
MASTER_SITES= http://w1.402.telia.com/~u40214514/
EXTRACT_SUFX= .tgz
USE_X11= Yes
NO_REGRESS= Yes
CONFIGURE_STYLE= imake noman
WRKDIST= ${WRKDIR}
.include <bsd.port.mk>

View File

@ -1,3 +0,0 @@
MD5 (wmeyes.tgz) = 611509fd1ced9fc90abaa6487ea307eb
RMD160 (wmeyes.tgz) = b3f97f1d445eae5015c62014cfcf704106119ab4
SHA1 (wmeyes.tgz) = 607312783306dd7dd699d02cadc51f7eb0000fe2

View File

@ -1,9 +0,0 @@
$OpenBSD: patch-Imakefile,v 1.1.1.1 2001/01/13 16:12:04 naddy Exp $
--- Imakefile.orig Mon May 4 05:17:00 1998
+++ Imakefile Fri Jan 12 14:57:38 2001
@@ -7,4 +7,4 @@ LOCAL_LIBRARIES = $(XMULIB) $(XTOOLLIB)
SRCS = wmeyes.c
OBJS = wmeyes.o
-ComplexProgramTarget(wmeyes)
+ComplexProgramTargetNoMan(wmeyes)

View File

@ -1,13 +0,0 @@
WMeyes is a pretty simple application: it sits in the Window Maker
dock, and a pair of eyes track your cursor. Actually, the program
should work in all window managers, but then you don't have a dock
to sit it in, in which case you might as well use xeyes.
The 'time' parameter on the command line affects both the update
time of the pupil moving around, and the time it takes for the
eyelids to open or close. These two can't be separated.
The standard method of starting it up under Window Maker is
'wmeyes -w -s &'.
'wmeyes -h' gives you usage info.

View File

@ -1,2 +0,0 @@
@comment $OpenBSD: PLIST,v 1.1.1.1 2001/01/13 16:12:04 naddy Exp $
bin/wmeyes

View File

@ -1,46 +0,0 @@
# $OpenBSD: Makefile,v 1.13 2002/09/17 14:35:03 wilfried Exp $
COMMENT= 'wm-app; minesweeper'
DISTNAME= wmtimebomb.20
PKGNAME= wmtimebomb-0.2.0
CATEGORIES= games x11 x11/windowmaker
MAINTAINER= Peter Stromberg <wilfried@openbsd.org>
PERMIT_PACKAGE_CDROM= "no licence"
PERMIT_PACKAGE_FTP= "no licence"
PERMIT_DISTFILES_CDROM= "no licence"
PERMIT_DISTFILES_FTP= "no licence"
MODULES= gettext
LIB_DEPENDS= wraster.4::x11/windowmaker \
PropList.2::devel/libproplist
USE_X11= Yes
NO_REGRESS= Yes
CONFIGURE_STYLE= imake
FLAVORS= 8bpp
FLAVOR?=
WRKDIST= ${WRKDIR}/wmtimebomb.app
SAMPLE_DIR= ${PREFIX}/share/examples/wmtimebomb
SUBST_VARS+= SAMPLE_DIR
pre-configure:
.if ${FLAVOR:L:M8pp}
cd ${WRKSRC} && \
rm XPM && ln -s XPM.lo XPM
.else
cd ${WRKSRC} && \
rm XPM && ln -s XPM.hi XPM
.endif
do-install:
${INSTALL_PROGRAM} ${WRKBUILD}/wmtimebomb ${PREFIX}/bin
${INSTALL_DATA_DIR} ${SAMPLE_DIR}
${INSTALL_DATA} ${WRKSRC}/example.modefile ${SAMPLE_DIR}
.include <bsd.port.mk>

View File

@ -1,3 +0,0 @@
MD5 (wmtimebomb.20.tar.gz) = f4e2df169704d146f20540e4e31d9e11
RMD160 (wmtimebomb.20.tar.gz) = b966b88a5486d1002d8ef0292e2c6c7baa18655c
SHA1 (wmtimebomb.20.tar.gz) = c9c74c03e597b5b73c91902af53a24bf635bf1ac

View File

@ -1,19 +0,0 @@
$OpenBSD: patch-Imakefile,v 1.2 2001/09/07 11:32:54 wilfried Exp $
--- Imakefile.orig Mon Nov 16 13:40:24 1998
+++ Imakefile Fri Sep 7 12:55:20 2001
@@ -1,10 +1,11 @@
-XPMLIB = -L/usr/X11R6/lib -lXpm -lm -ljpeg -lpng -lz -ltiff -lgif
-WMAKER = -L/usr/local/lib -lWMaker -lWINGs -lwraster -lPropList
+XPMLIB = `get-wraster-flags --ldflags` `get-wraster-flags --libs`
+WMAKER = -L${LOCALBASE}/lib -lWMaker -lWINGs -lintl -lPropList
LOCAL_LIBRARIES = $(WMAKER) $(XPMLIB) $(XLIB)
+EXTRA_INCLUDES= `get-wraster-flags --cflags` -I${LOCALBASE}/include
+
SRCS = timebomb.c
OBJS = timebomb.o
-ComplexProgramTarget(wmtimebomb)
-
+ComplexProgramTargetNoMan(wmtimebomb)

View File

@ -1,319 +0,0 @@
$OpenBSD: patch-timebomb_c,v 1.3 2001/05/21 14:11:30 wilfried Exp $
--- timebomb.c.orig Mon Nov 16 15:42:54 1998
+++ timebomb.c Mon May 21 14:23:56 2001
@@ -4,8 +4,8 @@
#include <X11/xpm.h>
#include <X11/Xproto.h>
#include <WMaker.h>
-#include <WINGs.h>
-#include "WINGsP.h"
+#include <WINGs/WINGs.h>
+#include <WINGs/WINGsP.h>
#include <wraster.h>
#include <signal.h>
#include "xlibgeneral.h"
@@ -94,7 +94,7 @@ XpmIcon countbar;
XpmIcon rbuttonb;
XpmIcon id;
XpmIcon timebombicon;
-XpmIcon clock;
+XpmIcon clockicon;
XpmIcon title;
XpmIcon about;
int abouttick;
@@ -184,7 +184,7 @@ int main(int argc, char** argv){
if(CheckArg(argc, argv, "-h")){print_help();exit(0);}
if(CheckArg(argc, argv, "-?")){print_help();exit(0);}
- sprintf(stringbuffer[0],"xxxxxxxxxxxxxxxxxxxxxxxxxx");
+ snprintf(stringbuffer[0],sizeof(stringbuffer[0]),"xxxxxxxxxxxxxxxxxxxxxxxxxx");
string[0]=stringbuffer[0];
string[1]=NULL;
XStringListToTextProperty(string,1,&xtp);
@@ -202,7 +202,7 @@ int main(int argc, char** argv){
x= 150;
y= 64;
/****************************/
- homedir=malloc(strlen(getenv("HOME"))+strlen(MODEFILE));
+ homedir=malloc(strlen(getenv("HOME"))+strlen(MODEFILE)+1);
sprintf(homedir,"%s%s",getenv("HOME"),MODEFILE);
modefile=fopen(homedir, "r");
if(!modefile){
@@ -307,7 +307,7 @@ int main(int argc, char** argv){
WMMenuAddSubmenu(menu, "Mode",menu_pref);
i=0;
while(i<maxmode){
- sprintf(defaultstring,"%dx%d, mines x%d %d seconds",tbtable[i]->x,tbtable[i]->y,tbtable[i]->bs,tbtable[i]->clock);
+ snprintf(defaultstring,sizeof(defaultstring),"%dx%d, mines x%d %d seconds",tbtable[i]->x,tbtable[i]->y,tbtable[i]->bs,tbtable[i]->clock);
WMMenuAddItem(menu_pref, defaultstring, (WMMenuAction)call_mode,tbtable[i],NULL,NULL);
i++;
}
@@ -340,7 +340,7 @@ int main(int argc, char** argv){
WMProcessEvent(app,&ev);
yy=0;
if(iconswitch[SW_GETNAME]){
- if(panel[2]->done){
+ {
iconswitch[SW_GETNAME]=0;
if(panel[2]->result == WAPRDefault){
pointman= WMGetTextFieldText(panel[2]->text);
@@ -354,7 +354,7 @@ int main(int argc, char** argv){
}
}
if(iconswitch[SW_SETBOMB] && !iconswitch[SW_GETNAME]){
- if(panel[0]->done){
+ {
iconswitch[SW_SETBOMB]=0;
if(panel[0]->result == WAPRDefault)
pointman= WMGetTextFieldText(panel[0]->text);
@@ -370,7 +370,7 @@ int main(int argc, char** argv){
}
}
if(iconswitch[SW_SETSIZE] && !iconswitch[SW_GETNAME]){
- if(panel[3]->done){
+ {
iconswitch[SW_SETSIZE]=0;
if(panel[3]->result == WAPRDefault)
pointman= WMGetTextFieldText(panel[3]->text);
@@ -394,7 +394,7 @@ int main(int argc, char** argv){
}
}
if(iconswitch[SW_SETTIME] && !iconswitch[SW_GETNAME]){
- if(panel[1]->done){
+ {
iconswitch[SW_SETTIME]=0;
if(panel[1]->result == WAPRDefault)
pointman= WMGetTextFieldText(panel[1]->text);
@@ -563,8 +563,8 @@ int main(int argc, char** argv){
char winstring[100];
char buffer[100];
iconswitch[SW_CHECKNAME]=1;
- sprintf(filename,"/.wmtimebomb/%dx%dx%dx%d",tb.x,tb.y,tb.bs,tb.clock);
- homedir=malloc(strlen(getenv("HOME"))+strlen(filename));
+ snprintf(filename,sizeof(filename),"/.wmtimebomb/%dx%dx%dx%d",tb.x,tb.y,tb.bs,tb.clock);
+ homedir=malloc(strlen(getenv("HOME"))+strlen(filename)+1);
sprintf(homedir,"%s%s",getenv("HOME"),filename);
historyfile=fopen(homedir, "a+");
free(homedir);
@@ -576,7 +576,7 @@ int main(int argc, char** argv){
}
nrecord=elem;
fclose(historyfile);
- sprintf(winstring,"a %d",clockn);
+ snprintf(winstring,sizeof(winstring),"a %d",clockn);
if(elem<MAXRECORD)
getname();
else if(elem && history_tcomparestr(history_table[elem-1],winstring)>0) getname();
@@ -598,7 +598,7 @@ static void call_setbs(void *foo, int it
if(!iconswitch[SW_GETNAME])
if(!iconswitch[SW_SETBOMB]){
iconswitch[SW_SETBOMB]=1;
- sprintf(stringbuffer[2],"%d",tb.bs);
+ snprintf(stringbuffer[2],sizeof(stringbuffer[2]),"%d",tb.bs);
panel[0] = WMCreateInputPanel(scr,NULL, "Set bombs",
"how many bomb you want?",
stringbuffer[2], "OK", "Cancel");
@@ -610,7 +610,7 @@ static void call_setclock(void *foo, int
if(!iconswitch[SW_GETNAME])
if(!iconswitch[SW_SETTIME]){
iconswitch[SW_SETTIME]=1;
- sprintf(stringbuffer[2],"%d",tb.clock);
+ snprintf(stringbuffer[2],sizeof(stringbuffer[2]),"%d",tb.clock);
panel[1] = WMCreateInputPanel(scr, NULL,"Set time",
"how long you need?",
stringbuffer[2], "OK", "Cancel");
@@ -621,7 +621,7 @@ static void call_setclock(void *foo, int
static void getname(){
if(!iconswitch[SW_GETNAME]){
iconswitch[SW_GETNAME]=1;
- sprintf(stringbuffer[2],"anonymous");
+ snprintf(stringbuffer[2],sizeof(stringbuffer[2]),"anonymous");
panel[2] = WMCreateInputPanel(scr,NULL, "Enter your name",
"What's your name?",
stringbuffer[2], "OK", "Cancel");
@@ -633,7 +633,7 @@ static void call_setsize(void *foo, int
if(!iconswitch[SW_GETNAME])
if(!iconswitch[SW_SETSIZE]){
iconswitch[SW_SETSIZE]=1;
- sprintf(stringbuffer[2],"%dx%d",tb.x,tb.y);
+ snprintf(stringbuffer[2],sizeof(stringbuffer[2]),"%dx%d",tb.x,tb.y);
panel[3] = WMCreateInputPanel(scr,NULL, "Enter size",
"WIDTHxHEIGHT",
stringbuffer[2], "OK", "Cancel");
@@ -698,8 +698,8 @@ static void history_tload(){
FILE *historyfile;
char filename[MAXPATH];
char buffer[200];
- sprintf(filename,"/.wmtimebomb/%dx%dx%dx%d",tb.x,tb.y,tb.bs,tb.clock);
- homedir=malloc(strlen(getenv("HOME"))+strlen(filename));
+ snprintf(filename,sizeof(filename),"/.wmtimebomb/%dx%dx%dx%d",tb.x,tb.y,tb.bs,tb.clock);
+ homedir=malloc(strlen(getenv("HOME"))+strlen(filename)+1);
sprintf(homedir,"%s%s",getenv("HOME"),filename);
historyfile=fopen(homedir, "a+");
free(homedir);
@@ -721,8 +721,8 @@ static void history_add(char *name,int t
FILE *historyfile;
char filename[MAXPATH];
char buffer[200];
- sprintf(filename,"/.wmtimebomb/%dx%dx%dx%d",tb.x,tb.y,tb.bs,tb.clock);
- homedir=malloc(strlen(getenv("HOME"))+strlen(filename));
+ snprintf(filename,sizeof(filename),"/.wmtimebomb/%dx%dx%dx%d",tb.x,tb.y,tb.bs,tb.clock);
+ homedir=malloc(strlen(getenv("HOME"))+strlen(filename)+1);
sprintf(homedir,"%s%s",getenv("HOME"),filename);
historyfile=fopen(homedir, "r");
rewind(historyfile);
@@ -733,7 +733,7 @@ static void history_add(char *name,int t
elem++;
}
fclose(historyfile);
- sprintf(buffer,"%s %d\n",name,time);
+ snprintf(buffer,sizeof(buffer),"%s %d\n",name,time);
history_table[elem]=strdup(buffer);
nrecord=elem+1;
if(iconswitch[SW_HISTORY]){
@@ -777,8 +777,8 @@ static void history_renew(WMList *tlist)
}
nrecord=elem;
- sprintf(filename,"/.wmtimebomb/%dx%dx%dx%d",tb.x,tb.y,tb.bs,tb.clock);
- homedir=malloc(strlen(getenv("HOME"))+strlen(filename));
+ snprintf(filename,sizeof(filename),"/.wmtimebomb/%dx%dx%dx%d",tb.x,tb.y,tb.bs,tb.clock);
+ homedir=malloc(strlen(getenv("HOME"))+strlen(filename)+1);
sprintf(homedir,"%s%s",getenv("HOME"),filename);
historyfile=fopen(homedir, "w");
free(homedir);
@@ -814,7 +814,7 @@ static void history_treinit(){
int elem;
char buffer[200];
if(iconswitch[SW_HISTORY]){
- sprintf(buffer,"width:%d height%d time:%d bomb:%d",tb.x,tb.y,tb.clock,tb.bs);
+ snprintf(buffer,sizeof(buffer),"width:%d height%d time:%d bomb:%d",tb.x,tb.y,tb.clock,tb.bs);
WMSetLabelText(historylist->label,buffer);
WMClearList(historylist->historyList);
history_tload();
@@ -933,7 +933,7 @@ static void call_history(void *foo, int
WMRealizeWidget(historylist->win);
WMMapSubwidgets(historylist->win);
WMMapWidget(historylist->win);
- sprintf(buffer,"width:%d height%d time:%d bomb:%d",tb.x,tb.y,tb.clock,tb.bs);
+ snprintf(buffer,sizeof(buffer),"width:%d height%d time:%d bomb:%d",tb.x,tb.y,tb.clock,tb.bs);
WMSetLabelText(historylist->label,buffer);
elem=WMGetListNumberOfRows(historylist->historyList);
if(elem)WMSelectListItem(historylist->historyList,0);
@@ -1049,9 +1049,9 @@ void init_pixmap(){
about.attributes.width=256;
about.attributes.height=256;
about.attributes.valuemask=(XpmSize);
- clock.attributes.width=200;
- clock.attributes.height=BS;
- clock.attributes.valuemask=XpmSize;
+ clockicon.attributes.width=200;
+ clockicon.attributes.height=BS;
+ clockicon.attributes.valuemask=XpmSize;
countbar.attributes.width=160;
countbar.attributes.height=BS;
countbar.attributes.valuemask=XpmSize;
@@ -1081,7 +1081,7 @@ void init_pixmap(){
XpmCreatePixmapFromData(display,window, rbuttonb_xpm,
&rbuttonb.pixmap, &rbuttonb.mask, &rbuttonb.attributes);
XpmCreatePixmapFromData(display,window, clock_xpm,
- &clock.pixmap, &clock.mask, &clock.attributes);
+ &clockicon.pixmap, &clockicon.mask, &clockicon.attributes);
XpmCreatePixmapFromData(display,window, countbar_xpm,
&countbar.pixmap, &countbar.mask, &countbar.attributes);
@@ -1175,27 +1175,27 @@ void show_hint(){
}
void redraw_iconwin(){
- XCopyArea(display,clock.pixmap,iconwin,igc,clockn/100*BS,0,BS,BS,0,BS);
- XCopyArea(display,clock.pixmap,iconwin,igc,(clockn%100)/10*BS,0,BS,BS,BS,BS);
- XCopyArea(display,clock.pixmap,iconwin,igc,clockn%10*BS,0,BS,BS,BSx2,BS);
+ XCopyArea(display,clockicon.pixmap,iconwin,igc,clockn/100*BS,0,BS,BS,0,BS);
+ XCopyArea(display,clockicon.pixmap,iconwin,igc,(clockn%100)/10*BS,0,BS,BS,BS,BS);
+ XCopyArea(display,clockicon.pixmap,iconwin,igc,clockn%10*BS,0,BS,BS,BSx2,BS);
if(windowswitch[0]){
XCopyArea(display,title.pixmap,window,gc,(tb.x-4)*BS,BS,BSx3,BS,(tb.x-4)*BS,BS);
if(clockn/1000){
- XCopyArea(display,clock.pixmap,window,igc,clockn/1000*BS,0,BS,BS,(tb.x-4)*BS,BS);
- XCopyArea(display,clock.pixmap,window,igc,(clockn%1000)/100*BS,0,BS,BS,(tb.x-3)*BS,BS);
- XCopyArea(display,clock.pixmap,window,igc,(clockn%100)/10*BS,0,BS,BS,(tb.x-2)*BS,BS);
- XCopyArea(display,clock.pixmap,window,igc,clockn%10*BS,0,BS,BS,(tb.x-1)*BS,BS);
+ XCopyArea(display,clockicon.pixmap,window,igc,clockn/1000*BS,0,BS,BS,(tb.x-4)*BS,BS);
+ XCopyArea(display,clockicon.pixmap,window,igc,(clockn%1000)/100*BS,0,BS,BS,(tb.x-3)*BS,BS);
+ XCopyArea(display,clockicon.pixmap,window,igc,(clockn%100)/10*BS,0,BS,BS,(tb.x-2)*BS,BS);
+ XCopyArea(display,clockicon.pixmap,window,igc,clockn%10*BS,0,BS,BS,(tb.x-1)*BS,BS);
}
else if((clockn%1000)/100){
- XCopyArea(display,clock.pixmap,window,igc,(clockn%1000)/100*BS,0,BS,BS,(tb.x-3)*BS,BS);
- XCopyArea(display,clock.pixmap,window,igc,(clockn%100)/10*BS,0,BS,BS,(tb.x-2)*BS,BS);
- XCopyArea(display,clock.pixmap,window,igc,clockn%10*BS,0,BS,BS,(tb.x-1)*BS,BS);
+ XCopyArea(display,clockicon.pixmap,window,igc,(clockn%1000)/100*BS,0,BS,BS,(tb.x-3)*BS,BS);
+ XCopyArea(display,clockicon.pixmap,window,igc,(clockn%100)/10*BS,0,BS,BS,(tb.x-2)*BS,BS);
+ XCopyArea(display,clockicon.pixmap,window,igc,clockn%10*BS,0,BS,BS,(tb.x-1)*BS,BS);
}
else if((clockn%100)/10){
- XCopyArea(display,clock.pixmap,window,igc,(clockn%100)/10*BS,0,BS,BS,(tb.x-2)*BS,BS);
- XCopyArea(display,clock.pixmap,window,igc,clockn%10*BS,0,BS,BS,(tb.x-1)*BS,BS);
+ XCopyArea(display,clockicon.pixmap,window,igc,(clockn%100)/10*BS,0,BS,BS,(tb.x-2)*BS,BS);
+ XCopyArea(display,clockicon.pixmap,window,igc,clockn%10*BS,0,BS,BS,(tb.x-1)*BS,BS);
}
- else XCopyArea(display,clock.pixmap,window,igc,clockn%10*BS,0,BS,BS,(tb.x-1)*BS,BS);
+ else XCopyArea(display,clockicon.pixmap,window,igc,clockn%10*BS,0,BS,BS,(tb.x-1)*BS,BS);
}
if(!(iconswitch[SW_RESTART]||iconswitch[SW_RESETTIME]||iconswitch[SW_CHEAT])){
XCopyArea(display,sbutton.pixmap,iconwin,igc,0,0,BS,BS,0,0);
@@ -1210,21 +1210,21 @@ void redraw_counter(){
if(windowswitch[1]){
XCopyArea(display,title.pixmap,window,gc,(tb.x-4)*BS,0,BSx3,BS,(tb.x-4)*BS,0);
if(bombcount/1000){
- XCopyArea(display,clock.pixmap,window,igc,bombcount/1000*BS,0,BS,BS,(tb.x-4)*BS,0);
- XCopyArea(display,clock.pixmap,window,igc,(bombcount%1000)/100*BS,0,BS,BS,(tb.x-3)*BS,0);
- XCopyArea(display,clock.pixmap,window,igc,(bombcount%100)/10*BS,0,BS,BS,(tb.x-2)*BS,0);
- XCopyArea(display,clock.pixmap,window,igc,bombcount%10*BS,0,BS,BS,(tb.x-1)*BS,0);
+ XCopyArea(display,clockicon.pixmap,window,igc,bombcount/1000*BS,0,BS,BS,(tb.x-4)*BS,0);
+ XCopyArea(display,clockicon.pixmap,window,igc,(bombcount%1000)/100*BS,0,BS,BS,(tb.x-3)*BS,0);
+ XCopyArea(display,clockicon.pixmap,window,igc,(bombcount%100)/10*BS,0,BS,BS,(tb.x-2)*BS,0);
+ XCopyArea(display,clockicon.pixmap,window,igc,bombcount%10*BS,0,BS,BS,(tb.x-1)*BS,0);
}
else if((bombcount%1000)/100){
- XCopyArea(display,clock.pixmap,window,igc,(bombcount%1000)/100*BS,0,BS,BS,(tb.x-3)*BS,0);
- XCopyArea(display,clock.pixmap,window,igc,(bombcount%100)/10*BS,0,BS,BS,(tb.x-2)*BS,0);
- XCopyArea(display,clock.pixmap,window,igc,bombcount%10*BS,0,BS,BS,(tb.x-1)*BS,0);
+ XCopyArea(display,clockicon.pixmap,window,igc,(bombcount%1000)/100*BS,0,BS,BS,(tb.x-3)*BS,0);
+ XCopyArea(display,clockicon.pixmap,window,igc,(bombcount%100)/10*BS,0,BS,BS,(tb.x-2)*BS,0);
+ XCopyArea(display,clockicon.pixmap,window,igc,bombcount%10*BS,0,BS,BS,(tb.x-1)*BS,0);
}
else if((bombcount%100)/10){
- XCopyArea(display,clock.pixmap,window,igc,(bombcount%100)/10*BS,0,BS,BS,(tb.x-2)*BS,0);
- XCopyArea(display,clock.pixmap,window,igc,bombcount%10*BS,0,BS,BS,(tb.x-1)*BS,0);
+ XCopyArea(display,clockicon.pixmap,window,igc,(bombcount%100)/10*BS,0,BS,BS,(tb.x-2)*BS,0);
+ XCopyArea(display,clockicon.pixmap,window,igc,bombcount%10*BS,0,BS,BS,(tb.x-1)*BS,0);
}
- else XCopyArea(display,clock.pixmap,window,igc,bombcount%10*BS,0,BS,BS,(tb.x-1)*BS,0);
+ else XCopyArea(display,clockicon.pixmap,window,igc,bombcount%10*BS,0,BS,BS,(tb.x-1)*BS,0);
}
redraw_iconwin();
}
@@ -1296,17 +1296,17 @@ void redraw_clock(){
stringbuffer[1][0]=0;
break;
case 1:
- sprintf(stringbuffer[1]," Game Over");
+ snprintf(stringbuffer[1],sizeof(stringbuffer[1])," Game Over");
break;
case 2:
- sprintf(stringbuffer[1]," Congratulations");
+ snprintf(stringbuffer[1],sizeof(stringbuffer[1])," Congratulations");
break;
}
- sprintf(stringbuffer[0],"%d%s",clockn,stringbuffer[1]);
+ snprintf(stringbuffer[0],sizeof(stringbuffer[0]),"%d%s",clockn,stringbuffer[1]);
string[0]=stringbuffer[0];
}
else {
- sprintf(stringbuffer[0],"Time Bomb");
+ snprintf(stringbuffer[0],sizeof(stringbuffer[0]),"Time Bomb");
}
XSetWMName(display,window,&xtp);
redraw_iconwin();

View File

@ -1,11 +0,0 @@
Mine Sweeper-like game for Window Maker.
The "8bpp" flavor provides a low color version.
Setting up:
mkdir ~/.wmtimebomb
cp ${SAMPLE_DIR}/example.modefile ~/.wmtimebomb/modefile
Usage: wmtimebomb -t <time> -b <bombs> -x <width> -y <height> -s -c -h
-s will start timebomb with clock in its title
-c will start timebomb with counter in its title

View File

@ -1,4 +0,0 @@
@comment $OpenBSD: PLIST,v 1.1.1.1 2001/02/09 13:06:25 wilfried Exp $
bin/wmtimebomb
share/examples/wmtimebomb/example.modefile
@dirrm share/examples/wmtimebomb