26 |
|
#define GAMMA 2.2 /* default exponent correction */ |
27 |
|
|
28 |
|
#define MINWIDTH (32*COMCW) /* minimum graphics window width */ |
29 |
< |
#define MINHEIGHT MINWIDTH /* minimum graphics window height */ |
29 |
> |
#define MINHEIGHT (MINWIDTH/2) /* minimum graphics window height */ |
30 |
|
|
31 |
|
#define BORWIDTH 5 /* border width */ |
32 |
|
#define COMHEIGHT (COMLH*COMCH) /* command line height (pixels) */ |
321 |
|
if (c_last > c_first) /* key pressed */ |
322 |
|
return(x11_getc()); |
323 |
|
/* button pressed */ |
324 |
< |
if (levptr(XButtonPressedEvent)->button & Button1) |
324 |
> |
if (levptr(XButtonPressedEvent)->button == Button1) |
325 |
|
return(MB1); |
326 |
< |
if (levptr(XButtonPressedEvent)->button & Button2) |
326 |
> |
if (levptr(XButtonPressedEvent)->button == Button2) |
327 |
|
return(MB2); |
328 |
< |
if (levptr(XButtonPressedEvent)->button & Button3) |
328 |
> |
if (levptr(XButtonPressedEvent)->button == Button3) |
329 |
|
return(MB3); |
330 |
– |
if (levptr(XButtonPressedEvent)->button & (Button4|Button5)) |
331 |
– |
return(MB1); |
330 |
|
return(ABORT); |
331 |
|
} |
332 |
|
|