30 |
|
#include "pic.h" |
31 |
|
#include "x11raster.h" |
32 |
|
#include "random.h" |
33 |
+ |
#include "x11icon.h" |
34 |
|
|
35 |
|
#define FONTNAME "8x13" /* text font we'll use */ |
36 |
|
|
205 |
|
|
206 |
|
init() /* get data and open window */ |
207 |
|
{ |
208 |
+ |
XWMHints ourxwmhints; |
209 |
|
XSetWindowAttributes ourwinattr; |
210 |
|
XSizeHints oursizhints; |
211 |
|
register int i; |
268 |
|
} |
269 |
|
XSetNormalHints(thedisplay, wind, &oursizhints); |
270 |
|
} |
271 |
+ |
ourxwmhints.flags = InputHint|IconPixmapHint; |
272 |
+ |
ourxwmhints.input = True; |
273 |
+ |
ourxwmhints.icon_pixmap = XCreateBitmapFromData(thedisplay, |
274 |
+ |
wind, x11icon_bits, x11icon_width, x11icon_height); |
275 |
+ |
XSetWMHints(thedisplay, wind, &ourxwmhints); |
276 |
|
XSelectInput(thedisplay, wind, ButtonPressMask|ButtonReleaseMask |
277 |
|
|ButtonMotionMask|StructureNotifyMask |
278 |
|
|KeyPressMask|ExposureMask); |
424 |
|
sprintf(buf, "%.3f", intens(cval)/exposure); |
425 |
|
break; |
426 |
|
case 'l': /* luminance */ |
427 |
< |
sprintf(buf, "%.0fn", luminance(cval)/exposure); |
427 |
> |
sprintf(buf, "%.0fL", luminance(cval)/exposure); |
428 |
|
break; |
429 |
|
case 'c': /* color */ |
430 |
|
comp = pow(2.0, (double)scale); |