Package: libgdiplus
Version: 2.10-3

While compiling your package using our research compiler infrastructure it
became apparent that an invalid conversion was used in GdipDrawImageRectRect. A
closer look, however, suggests that all function calls to gdip_unit_conversion
in GdipDrawImageRectRect use a wrong order of arguments:

The calls are:
dstx = gdip_unit_conversion (srcUnit, UnitCairoPoint, graphics->type, 
graphics->dpi_x, dstx);
[... more of the same form ...]

The prototype of gdip_unit_conversion, however, is:

float gdip_unit_conversion (Unit from, Unit to, float dpi, GraphicsType type, 
float nSrc) GDIP_INTERNAL;

Thus the order of graphics->type and graphics->dpi_x should be changed.

Best,
Michael

Attachment: pgplY1pH0jJpE.pgp
Description: PGP signature

Reply via email to