Add scale/zoom union in link target

scale is now deprecated and plugins should use zoom instead
This commit is contained in:
Jeremie Knuesel 2018-02-15 18:07:20 +01:00
parent 09d8a37c8e
commit 8b93be9471
2 changed files with 5 additions and 2 deletions

View file

@ -114,7 +114,7 @@ zathura_link_target_t
zathura_link_get_target(zathura_link_t* link)
{
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;
}

View file

@ -179,7 +179,10 @@ typedef struct zathura_link_target_s
double right; /**< Right coordinate */
double top; /**< Top coordinate */
double bottom; /**< Bottom coordinate */
double zoom; /**< Scale */
union {
double scale; /**< @deprecated Scale */
double zoom; /**< Zoom */
};
} zathura_link_target_t;
/**