mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-01-03 02:20:16 +01:00
[_cairo_surface_set_device_scale] zero xy and yx matrix entries
Just in case...
This commit is contained in:
parent
80c5906267
commit
eb63e5609e
1 changed files with 4 additions and 0 deletions
|
|
@ -785,9 +785,13 @@ _cairo_surface_set_device_scale (cairo_surface_t *surface,
|
|||
|
||||
surface->device_transform.xx = sx;
|
||||
surface->device_transform.yy = sy;
|
||||
surface->device_transform.xy = 0.0;
|
||||
surface->device_transform.yx = 0.0;
|
||||
|
||||
surface->device_transform_inverse.xx = 1.0 / sx;
|
||||
surface->device_transform_inverse.yy = 1.0 / sy;
|
||||
surface->device_transform_inverse.xy = 0.0;
|
||||
surface->device_transform_inverse.yx = 0.0;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue