| # | Line 614 | Line 614 | XKeyPressedEvent *ekey; | |
|---|---|---|
| 614 | make_rpixmap(ourras, wind); | |
| 615 | redraw(0, 0, width, height); | |
| 616 | return(0); | |
| 617 | + | case '0': /* recenter origin */ |
| 618 | + | if (xoff == 0 & yoff == 0) |
| 619 | + | return(0); |
| 620 | + | xoff = yoff = 0; |
| 621 | + | XClearWindow(thedisplay, wind); |
| 622 | + | redraw(0, 0, width, height); |
| 623 | + | return(0); |
| 624 | case ' ': /* clear */ | |
| 625 | redraw(box.xmin, box.ymin, box.xsiz, box.ysiz); | |
| 626 | return(0); | |
| – | Removed lines |
| + | Added lines |
| < | Changed lines (old) |
| > | Changed lines (new) |