mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-05-15 16:08:05 +02:00
Merge branch 'hgr/win_div_zero' into 'master'
cairo-win32-font: fixed division by zero See merge request cairo/cairo!588
This commit is contained in:
commit
ccfe3ebb88
1 changed files with 2 additions and 2 deletions
|
|
@ -231,8 +231,8 @@ _compute_transform (cairo_win32_scaled_font_t *scaled_font,
|
|||
|
||||
scaled_font->logical_size =
|
||||
_cairo_lround (WIN32_FONT_LOGICAL_SCALE * scaled_font->y_scale);
|
||||
scaled_font->logical_scale =
|
||||
WIN32_FONT_LOGICAL_SCALE * scaled_font->y_scale;
|
||||
scaled_font->logical_scale = MAX(1.f,
|
||||
WIN32_FONT_LOGICAL_SCALE * scaled_font->y_scale);
|
||||
}
|
||||
|
||||
cairo_matrix_scale (&scaled_font->logical_to_device,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue