tiny format polish

This commit is contained in:
John Cupitt 2019-02-27 18:23:11 +00:00
parent e27c290856
commit 90ca1d8038

View File

@ -266,7 +266,8 @@ vips_foreign_load_svg_parse( VipsForeignLoadSvg *svg, VipsImage *out )
rsvg_handle_set_dpi( svg->page, svg->dpi * svg->scale ); rsvg_handle_set_dpi( svg->page, svg->dpi * svg->scale );
rsvg_handle_get_dimensions( svg->page, &dimensions ); rsvg_handle_get_dimensions( svg->page, &dimensions );
if( width == dimensions.width && height == dimensions.height ) { if( width == dimensions.width &&
height == dimensions.height ) {
/* SVG without width and height always reports the same /* SVG without width and height always reports the same
* dimensions regardless of dpi. Apply dpi/scale using * dimensions regardless of dpi. Apply dpi/scale using
* cairo instead. * cairo instead.
@ -348,7 +349,7 @@ vips_foreign_load_svg_generate( VipsRegion *or,
cairo_destroy( cr ); cairo_destroy( cr );
/* Cairo makes pre-multipled BRGA, we must byteswap and unpremultiply. /* Cairo makes pre-multipled BRGA -- we must byteswap and unpremultiply.
*/ */
for( y = 0; y < r->height; y++ ) for( y = 0; y < r->height; y++ )
vips__cairo2rgba( vips__cairo2rgba(