| 628 |
|
if (avgbox(cval) == -1) |
| 629 |
|
return(-1); |
| 630 |
|
comp = com=='@' |
| 631 |
< |
? 59.2/pow(1.219+pow(luminance(cval)/exposure,.4),2.5)/exposure |
| 631 |
> |
? 106./pow(1.219+pow(luminance(cval)/exposure,.4),2.5)/exposure |
| 632 |
|
: .5/bright(cval) ; |
| 633 |
|
comp = log(comp)/.69315 - scale; |
| 634 |
|
n = comp < 0 ? comp-.5 : comp+.5 ; /* round */ |
| 652 |
|
if (fast) |
| 653 |
|
make_rpixmap(ourras, wind); |
| 654 |
|
redraw(0, 0, width, height); |
| 655 |
+ |
return(0); |
| 656 |
+ |
case 'f': /* turn on fast redraw */ |
| 657 |
+ |
fast = 1; |
| 658 |
+ |
make_rpixmap(ourras, wind); |
| 659 |
+ |
return(0); |
| 660 |
+ |
case 'F': /* turn off fast redraw */ |
| 661 |
+ |
fast = 0; |
| 662 |
+ |
free_rpixmap(ourras); |
| 663 |
|
return(0); |
| 664 |
|
case '0': /* recenter origin */ |
| 665 |
|
if (xoff == 0 & yoff == 0) |