mirror of
https://git.pwmt.org/pwmt/zathura.git
synced 2025-01-01 02:26:00 +01:00
Add scale/zoom union in link target
scale is now deprecated and plugins should use zoom instead
This commit is contained in:
parent
09d8a37c8e
commit
8b93be9471
2 changed files with 5 additions and 2 deletions
|
@ -114,7 +114,7 @@ zathura_link_target_t
|
||||||
zathura_link_get_target(zathura_link_t* link)
|
zathura_link_get_target(zathura_link_t* link)
|
||||||
{
|
{
|
||||||
if (link == NULL) {
|
if (link == NULL) {
|
||||||
zathura_link_target_t target = { 0, NULL, 0, 0, 0, 0, 0, 0 };
|
zathura_link_target_t target = { 0, NULL, 0, 0, 0, 0, 0, { 0 } };
|
||||||
return target;
|
return target;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -179,7 +179,10 @@ typedef struct zathura_link_target_s
|
||||||
double right; /**< Right coordinate */
|
double right; /**< Right coordinate */
|
||||||
double top; /**< Top coordinate */
|
double top; /**< Top coordinate */
|
||||||
double bottom; /**< Bottom coordinate */
|
double bottom; /**< Bottom coordinate */
|
||||||
double zoom; /**< Scale */
|
union {
|
||||||
|
double scale; /**< @deprecated Scale */
|
||||||
|
double zoom; /**< Zoom */
|
||||||
|
};
|
||||||
} zathura_link_target_t;
|
} zathura_link_target_t;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in a new issue