home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The World of Computer Software
/
World_Of_Computer_Software-02-387-Vol-3of3.iso
/
x
/
x11p-13.zip
/
RCS
/
do_popups.c,v
< prev
next >
Wrap
Text File
|
1989-05-09
|
2KB
|
153 lines
head 2.2;
access ;
symbols pre-merge:2.0;
locks ; strict;
comment @ * @;
2.2
date 89.05.09.17.21.38; author joel; state Exp;
branches ;
next 2.1;
2.1
date 89.05.03.14.17.48; author joel; state Exp;
branches ;
next 2.0;
2.0
date 89.01.31.17.05.30; author erik; state Exp;
branches ;
next 1.2;
1.2
date 89.01.31.17.05.30; author joel; state Exp;
branches ;
next 1.1;
1.1
date 88.06.17.17.19.54; author joel; state Exp;
branches ;
next ;
desc
@@
2.2
log
@Merged into do_windows.c awhile back
@
text
@@
2.1
log
@Massive changes, I'm not going to go into details.
@
text
@a0 58
#include "x11perf.h"
static Window w;
static rows, columns;
static void CreateSubs(d)
Display *d;
{
int x, y, i;
int child;
child = 0;
for (x = 0; x < COLS; x++)
for (y = 0; y < rows; y++) {
(void) XCreateSimpleWindow (
d, w, x*20 + 10, y*20 + 10, 10, 10, 0, bgPixel, fgPixel);
if ((++child) == 200)
return ;
}
}
Boolean InitPopups(d, p)
Display *d;
Parms p;
{
int i, x, y;
if (p->objects < 50) {
rows = 1;
columns = p->objects;
}
else {
columns = COLS;
rows = p->objects/COLS;
}
p->objects = rows * columns;
CreatePerfStuff(d, 1, WIDTH, HEIGHT, &w, NULL, NULL);
CreateSubs(d);
return True;
}
void DoPopsUps(d, p)
Display *d;
Parms p;
{
int i;
Window popup;
popup = XCreateSimpleWindow (
d, RootWindow(d, 0), 30, 40, 200, 200, 0, bgPixel, fgPixel);
for (i = 0; i < p->objects; i++)
{
XMapWindow(d, popup);
XUnmapWindow(d, popup);
}
XDestroyWindow(d, popup);
}
@
2.0
log
@version from /usr/src/pmax
@
text
@d22 1
a22 1
void InitPopups(d, p)
d39 1
a39 1
@
1.2
log
@Added -fg -bg capabilities
@
text
@@
1.1
log
@Initial revision
@
text
@a10 2
int wp = WhitePixel (d, 0);
int bp = BlackPixel (d, 0);
d16 1
a16 1
d, w, x*20 + 10, y*20 + 10, 10, 10, 0, wp, bp);
a45 2
int wp = WhitePixel (d, 0);
int bp = BlackPixel (d, 0);
d50 1
a50 1
d, RootWindow(d, 0), 30, 40, 200, 200, 0, wp, bp);
@