| 37 |
|
|
| 38 |
|
#define BORWIDTH 5 /* border width */ |
| 39 |
|
|
| 40 |
< |
#define ICONSIZ 80 /* maximum icon dimension */ |
| 40 |
> |
#define ICONSIZ (8*10) /* maximum icon dimension (even 8) */ |
| 41 |
|
|
| 42 |
|
#define ourscreen DefaultScreen(thedisplay) |
| 43 |
|
#define ourblack BlackPixel(thedisplay,ourscreen) |
| 92 |
|
|
| 93 |
|
char *geometry = NULL; /* geometry specification */ |
| 94 |
|
|
| 95 |
< |
char icondata[(ICONSIZ+7)/8*ICONSIZ]; /* icon bitmap data */ |
| 95 |
> |
char icondata[ICONSIZ*ICONSIZ/8]; /* icon bitmap data */ |
| 96 |
|
int iconwidth = 0, iconheight = 0; |
| 97 |
|
|
| 98 |
|
char *progname; |
| 658 |
|
register int x, xi; |
| 659 |
|
|
| 660 |
|
if (iconheight == 0) { /* initialize */ |
| 661 |
< |
if (xmax < ICONSIZ && ymax < ICONSIZ) { |
| 661 |
> |
if (xmax <= ICONSIZ && ymax <= ICONSIZ) { |
| 662 |
|
iconwidth = xmax; |
| 663 |
|
iconheight = ymax; |
| 664 |
|
} else if (xmax > ymax) { |
| 686 |
|
*dp |= 1<<(x&07); |
| 687 |
|
cerr[x] = err >>= 1; |
| 688 |
|
} |
| 689 |
< |
if (y >= ymax-ymax/iconheight) /* all done */ |
| 689 |
> |
if (y >= ymax - ymax/iconheight) /* all done */ |
| 690 |
|
dp = NULL; |
| 691 |
|
} |
| 692 |
|
|