mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-05-04 21:08:10 +02:00
[scaled-font] Use full ctm matrix when comparing scaled-font keys
We use the full matrix in hash computation, but only compare the non-translation items in equality check. This is no bug though, as we set the ctm translation components of a scaled font to zero explicitly. But the change makes the hash and equal functions consistent, which is good.
This commit is contained in:
parent
48099af9fe
commit
3883a371f2
1 changed files with 1 additions and 1 deletions
|
|
@ -569,7 +569,7 @@ _cairo_scaled_font_keys_equal (const void *abstract_key_a, const void *abstract_
|
|||
sizeof(cairo_matrix_t)) == 0 &&
|
||||
memcmp ((unsigned char *)(&key_a->ctm.xx),
|
||||
(unsigned char *)(&key_b->ctm.xx),
|
||||
sizeof(double) * 4) == 0 &&
|
||||
sizeof(cairo_matrix_t)) == 0 &&
|
||||
cairo_font_options_equal (&key_a->options, &key_b->options));
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue