diff options
Diffstat (limited to 'draw.c')
-rw-r--r-- | draw.c | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -331,6 +331,13 @@ void visual_box(FILE *fc){ modified = 1; goto vis_exit; break; + case 'C':/* crop-to-region */ + copy_lines_to_ring(0, HEIGHT-1, PRV_STATE); + crop_to_rect(MIN(x, orig_x), MIN(y, orig_y), MAX(x, orig_x), MAX(y, orig_y)); + copy_lines_to_ring(0, HEIGHT-1, NEW_STATE); + modified = 1; + goto vis_exit; + break; } check_bound(); set_video(VIDEO_NRM); |