mirror of
https://github.com/NikitaIvanovV/ctpv.git
synced 2024-11-28 07:23:07 +01:00
Minor
This commit is contained in:
parent
99db6496ca
commit
9197d42809
@ -84,7 +84,7 @@ send_image() {
|
||||
case "$image_method" in
|
||||
"$image_method_ueberzug")
|
||||
path="$(printf '%s' "$1" | sed 's/\\/\\\\/g; s/"/\\"/g')"
|
||||
printf '{ "action": "add", "identifier": "preview", "x": %d, "y": %d, "width": %d, "height": %d, "scaler": "contain", "scaling_position_x": 0.5, "scaling_position_y": 0.5, "path": "%s"}\n' "$x" "$y" "$w" "$h" "$path" > "$fifo"
|
||||
printf '{ "action": "add", "identifier": "preview", "x": %d, "y": %d, "width": %d, "height": %d, "scaler": "contain", "scaling_position_x": 0.5, "scaling_position_y": 0.5, "path": "%s" }\n' "$x" "$y" "$w" "$h" "$path" > "$fifo"
|
||||
return 1
|
||||
;;
|
||||
"$image_method_kitty")
|
||||
|
@ -13,6 +13,8 @@
|
||||
|
||||
#define PREVP_SIZE sizeof(Preview *)
|
||||
|
||||
#define MIMETYPE_MAX 64
|
||||
|
||||
VECTOR_GEN_SOURCE(Preview, Preview)
|
||||
|
||||
static struct {
|
||||
|
@ -6,8 +6,6 @@
|
||||
#include "vector.h"
|
||||
#include "result.h"
|
||||
|
||||
#define MIMETYPE_MAX 64
|
||||
|
||||
enum PreviewAttr {
|
||||
PREV_ATTR_NONE = 0,
|
||||
PREV_ATTR_EXT_SHORT = 1 << 0,
|
||||
|
Loading…
Reference in New Issue
Block a user