icat: When using --place ensure screen doesnt scroll by leaving cursor at top-left corner of image.

This commit is contained in:
Kovid Goyal 2023-01-04 11:44:47 +05:30
parent cab7856495
commit a2c68a927e
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C
2 changed files with 5 additions and 1 deletions

View File

@ -48,7 +48,8 @@ into the specified rectangle. The syntax for specifying rectangles is
All measurements are in cells (i.e. cursor positions) with the origin
:italic:`(0, 0)` at the top-left corner of the screen. Note that the :option:`--align`
option will horizontally align the image within this rectangle. By default, the image
is horizontally centered within the rectangle.
is horizontally centered within the rectangle. Using place will cause the cursor to
be positioned at the top left corner of the image, instead of on the line after the image.
--scale-up

View File

@ -35,6 +35,9 @@ func gc_for_image(imgd *image_data, frame_num int, frame *image_frame) *graphics
if z_index != 0 {
gc.SetZIndex(z_index)
}
if place != nil {
gc.SetCursorMovement(graphics.GRT_cursor_static)
}
} else {
gc.SetAction(graphics.GRT_action_frame)
gc.SetGap(int32(frame.delay_ms))