mirror of
https://github.com/BepInEx/mono.git
synced 2026-11-18 03:51:19 -10:00
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.
5 lines
240 B
Plaintext
5 lines
240 B
Plaintext
#include System.Drawing.dll.sources
|
|
|
|
../../../external/corefx/src/System.Drawing.Common/src/System/Drawing/BufferedGraphics.Windows.cs
|
|
../../../external/corefx/src/System.Drawing.Common/src/System/Drawing/BufferedGraphicsContext.Windows.cs
|