mirror of
https://git.pwmt.org/pwmt/zathura.git
synced 2024-12-28 06:06:00 +01:00
Cast to the correct type
CID 276632
This commit is contained in:
parent
a0953f2a16
commit
2a48d2df0f
1 changed files with 1 additions and 1 deletions
|
@ -319,7 +319,7 @@ set_font_from_property(cairo_t* cairo, zathura_t* zathura, cairo_font_weight_t w
|
|||
/* get font size: can be points or absolute.
|
||||
* absolute units: example: value 10*PANGO_SCALE = 10 (unscaled) device units (logical pixels)
|
||||
* point units: example: value 10*PANGO_SCALE = 10 points = 10*(font dpi config / 72) device units */
|
||||
double size = pango_font_description_get_size(descr) / PANGO_SCALE;
|
||||
double size = pango_font_description_get_size(descr) / (double)PANGO_SCALE;
|
||||
|
||||
/* convert point size to device units */
|
||||
if (!pango_font_description_get_size_is_absolute(descr)) {
|
||||
|
|
Loading…
Reference in a new issue