mirror of
https://github.com/NikitaIvanovV/ctpv.git
synced 2024-11-24 13:53:07 +01:00
Minor
This commit is contained in:
parent
99db6496ca
commit
9197d42809
@ -84,7 +84,7 @@ send_image() {
|
|||||||
case "$image_method" in
|
case "$image_method" in
|
||||||
"$image_method_ueberzug")
|
"$image_method_ueberzug")
|
||||||
path="$(printf '%s' "$1" | sed 's/\\/\\\\/g; s/"/\\"/g')"
|
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
|
return 1
|
||||||
;;
|
;;
|
||||||
"$image_method_kitty")
|
"$image_method_kitty")
|
||||||
|
@ -13,6 +13,8 @@
|
|||||||
|
|
||||||
#define PREVP_SIZE sizeof(Preview *)
|
#define PREVP_SIZE sizeof(Preview *)
|
||||||
|
|
||||||
|
#define MIMETYPE_MAX 64
|
||||||
|
|
||||||
VECTOR_GEN_SOURCE(Preview, Preview)
|
VECTOR_GEN_SOURCE(Preview, Preview)
|
||||||
|
|
||||||
static struct {
|
static struct {
|
||||||
|
@ -6,8 +6,6 @@
|
|||||||
#include "vector.h"
|
#include "vector.h"
|
||||||
#include "result.h"
|
#include "result.h"
|
||||||
|
|
||||||
#define MIMETYPE_MAX 64
|
|
||||||
|
|
||||||
enum PreviewAttr {
|
enum PreviewAttr {
|
||||||
PREV_ATTR_NONE = 0,
|
PREV_ATTR_NONE = 0,
|
||||||
PREV_ATTR_EXT_SHORT = 1 << 0,
|
PREV_ATTR_EXT_SHORT = 1 << 0,
|
||||||
|
Loading…
Reference in New Issue
Block a user