[PATCH 0/2] gdiplus: Small DrawImage() resampling fixes.

Jan Havran havran.jan at email.cz
Sun Mar 24 09:48:23 CDT 2019


Hello Wine community, this is my first Wine patch.

This series fixes some drawing of GDI+ DrawImage() where resampling was applied.
I tried to write some unit tests, but it turned out that there is no simple
and effective way how to catch all differences between native gdiplus library
and Wine lib (without putting significant part of DrawImage() into tests file).
At least I wrote relative complex standalone tests for my own testing where
I was comparing every pixel drawn by buildin and native lib, and I am
pretty sure this series fixes mentioned issues without breaking anything else.

There are much more drawing issues I noticed so far, but for some I do not know to
fix them without breaking other stuff, for some issues I know what caused them, but
I do not know how to fix them, and for some for I have no idea why are they appearing.
But I will keep testing.

Jan Havran (2):
  gdiplus: Fix rounding dst_area borders for GdipDrawImagePointsRect().
  gdiplus: Fix resample offset for nearest neighbor interpolation.

 dlls/gdiplus/graphics.c | 46 ++++++++++++++++++++++++++++++++++-------
 1 file changed, 38 insertions(+), 8 deletions(-)

-- 
2.21.0




More information about the wine-devel mailing list