wine-wine/dlls/gdiplus
Damjan Jovanovic b4e12ea07f gdiplus: GdipGraphicsClear() should overwrite pixels, not alpha blend.
All sample code in the Python Pyglet library suffers from terrible
text corruption, caused by the inability to erase the background
between rendering sequential font glyphs, resulting in leftovers
from previous letters mixing with the image of new letters.

This is because it attempts to erase the background by calling
GdipGraphicsClear() with ARGB color 0x00000000 (completely
transparent black), and in our gdiplus alpha blending that into
the background has no effect. It should be using
CompositeModeSourceCopy to overwrite the background with that brush
instead.

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=30506
Signed-off-by: Damjan Jovanovic <damjan.jov@gmail.com>
Signed-off-by: Vincent Povirk <vincent@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
(cherry picked from commit 3c8784bf9c)
Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
2020-03-29 16:15:34 +02:00
..
tests gdiplus: GdipGraphicsClear() should overwrite pixels, not alpha blend. 2020-03-29 16:15:34 +02:00
Makefile.in
brush.c gdiplus: Fix brush transform created with GdipCreateLineBrushFromRect(). 2018-11-28 10:43:37 +01:00
customlinecap.c
font.c gdiplus: Fix a memory leak (Valgrind). 2018-12-19 22:13:44 +01:00
gdiplus.c
gdiplus.manifest
gdiplus.rc gdiplus: Add version resource. 2019-11-14 23:44:56 +01:00
gdiplus.spec
gdiplus11.manifest
gdiplus_private.h gdiplus: Remove unused brush fields. 2018-11-28 10:43:37 +01:00
graphics.c gdiplus: GdipGraphicsClear() should overwrite pixels, not alpha blend. 2020-03-29 16:15:34 +02:00
graphicspath.c
image.c gdiplus: Fix a memory leak on error path (Valgrind). 2019-04-26 22:41:17 +02:00
imageattributes.c
matrix.c
metafile.c
pathiterator.c
pen.c gdiplus: Implement GdipRotatePenTransform(). 2018-10-24 20:12:05 +02:00
region.c
stringformat.c