mirror of
https://github.com/NikitaIvanovV/ctpv.git
synced 2025-06-20 09:58:05 +02:00
Add default values for w, h, x and y
This commit is contained in:
parent
9e4011e808
commit
972efd368c
@ -379,11 +379,6 @@ script environment:
|
||||
.BR $y
|
||||
and
|
||||
.BR $id .
|
||||
However, they are rarely used even by built-in previews and
|
||||
are only set if corresponding arguments were passed to
|
||||
.B ctpv
|
||||
command (see
|
||||
.IR SYNOPSIS ).
|
||||
There are also
|
||||
.B $m
|
||||
and
|
||||
|
@ -214,6 +214,15 @@ static RESULT preview(int argc, char *argv[])
|
||||
GET_PARG(y, 4);
|
||||
GET_PARG(id, 5);
|
||||
|
||||
if (!w)
|
||||
w = "80";
|
||||
if (!h)
|
||||
h = "40";
|
||||
if (!x)
|
||||
x = "0";
|
||||
if (!y)
|
||||
y = "0";
|
||||
|
||||
ERRCHK_RET_OK(init_previews());
|
||||
|
||||
struct InputFile input_f;
|
||||
|
Loading…
x
Reference in New Issue
Block a user