projects
/
oweals
/
cde.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
dtwm: Remove define MOTIF_ONE_DOT_ONE, backwards compatibility for motif 1.1, CDE...
[oweals/cde.git]
/
cde
/
programs
/
dtscreen
/
pyro.c
diff --git
a/cde/programs/dtscreen/pyro.c
b/cde/programs/dtscreen/pyro.c
index 0501f55fe421b518f2b7364e7ed952a5e5fa2c59..4cc3ce2a7b553a8efee03ccc011902fd73593af5 100644
(file)
--- a/
cde/programs/dtscreen/pyro.c
+++ b/
cde/programs/dtscreen/pyro.c
@@
-16,7
+16,7
@@
* details.
*
* You should have received a copy of the GNU Lesser General Public
* details.
*
* You should have received a copy of the GNU Lesser General Public
- * License along with these librar
ar
ies and programs; if not, write
+ * License along with these libraries and programs; if not, write
* to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
* Floor, Boston, MA 02110-1301 USA
*/
* to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
* Floor, Boston, MA 02110-1301 USA
*/
@@
-143,8
+143,7
@@
static int orig_p_ignite;
static int just_started = True;/* Greet the user right away */
void
static int just_started = True;/* Greet the user right away */
void
-initpyro(pwin)
- perwindow *pwin;
+initpyro(perwindow *pwin)
{
pyrostruct *pp;
rocket *rp;
{
pyrostruct *pp;
rocket *rp;
@@
-210,8
+209,7
@@
initpyro(pwin)
/*ARGSUSED*/
void
/*ARGSUSED*/
void
-drawpyro(pwin)
- perwindow *pwin;
+drawpyro(perwindow *pwin)
{
pyrostruct *pp;
rocket *rp;
{
pyrostruct *pp;
rocket *rp;
@@
-239,9
+237,7
@@
drawpyro(pwin)
}
static void
}
static void
-ignite(pwin, pp)
- perwindow *pwin;
- pyrostruct *pp;
+ignite(perwindow *pwin, pyrostruct *pp)
{
rocket *rp;
int multi, shelltype, nstars, fuse, npix, pix, color1, color2;
{
rocket *rp;
int multi, shelltype, nstars, fuse, npix, pix, color1, color2;
@@
-250,7
+246,7
@@
ignite(pwin, pp)
x = random() % pp->width;
xvel = FLOATRAND(-pp->maxvelx, pp->maxvelx);
/* All this to stop too many rockets going offscreen: */
x = random() % pp->width;
xvel = FLOATRAND(-pp->maxvelx, pp->maxvelx);
/* All this to stop too many rockets going offscreen: */
- if (
x < pp->lmargin && xvel < 0.0 || x > pp->rmargin && xvel > 0.0
)
+ if (
(x < pp->lmargin && xvel < 0.0) || (x > pp->rmargin && xvel > 0.0)
)
xvel = -xvel;
yvel = FLOATRAND(pp->minvely, pp->maxvely);
fuse = INTRAND(MINFUSE, MAXFUSE);
xvel = -xvel;
yvel = FLOATRAND(pp->minvely, pp->maxvely);
fuse = INTRAND(MINFUSE, MAXFUSE);
@@
-292,10
+288,7
@@
ignite(pwin, pp)
}
static void
}
static void
-animate(pwin, pp, rp)
- perwindow *pwin;
- pyrostruct *pp;
- rocket *rp;
+animate(perwindow *pwin, pyrostruct *pp, rocket *rp)
{
int starn;
float r, theta;
{
int starn;
float r, theta;
@@
-329,10
+322,7
@@
animate(pwin, pp, rp)
}
static void
}
static void
-shootup(pwin, pp, rp)
- perwindow *pwin;
- pyrostruct *pp;
- rocket *rp;
+shootup(perwindow *pwin, pyrostruct *pp, rocket *rp)
{
XFillRectangle(dsp, pwin->w, pp->bgGC, (int) (rp->x), (int) (rp->y),
ROCKETW, ROCKETH + 3);
{
XFillRectangle(dsp, pwin->w, pp->bgGC, (int) (rp->x), (int) (rp->y),
ROCKETW, ROCKETH + 3);
@@
-350,10
+340,7
@@
shootup(pwin, pp, rp)
}
static void
}
static void
-burst(pwin, pp, rp)
- perwindow *pwin;
- pyrostruct *pp;
- rocket *rp;
+burst(perwindow *pwin, pyrostruct *pp, rocket *rp)
{
register int starn;
register int nstars, stype;
{
register int starn;
register int nstars, stype;