[System.Drawing] Use CoreFX implementation of BufferedGraphics on Windows (#16163)
commitf9052ed78e935492c95dfc167edfba29d6f5b654
authorNikolay Sivov <nsivov@codeweavers.com>
Mon, 12 Aug 2019 10:42:07 +0000 (12 13:42 +0300)
committerAlexander Köplinger <alex.koeplinger@outlook.com>
Mon, 12 Aug 2019 10:42:07 +0000 (12 12:42 +0200)
tree983b1566cfb4871250b14e29bb489c718cfefa7e
parentc70b4cc3cc8ef19b9b5c25a96ad23421d1b65175
[System.Drawing] Use CoreFX implementation of BufferedGraphics on Windows (#16163)

The issue was made visible with .NET Core WinForms. Some controls draw text with DrawTextEx to intermediate Graphics based on Bitmap, that later it's moved back to main Graphics with DrawImage. This results in a lost of transparency component along the way, making antialiased glyph bitmaps draw and B/W. Corruption is visible with gray antialiasing, but is more severe in subpixel modes.

I verified that same happens with gdiplus on Windows, code from CoreFX works correctly.
mcs/class/System.Drawing/System.Drawing.csproj
mcs/class/System.Drawing/win32_net_4_x_System.Drawing.dll.exclude.sources [new file with mode: 0644]
mcs/class/System.Drawing/win32_net_4_x_System.Drawing.dll.sources [new file with mode: 0644]