From e6a10b9f72db46bcd3407c912715fab380001075 Mon Sep 17 00:00:00 2001 From: Luis Reich Date: Thu, 24 Sep 2026 23:25:52 +0200 Subject: [PATCH] Fix transparency --- src/Overlay.NET/Directx/Direct2DRenderer.cs | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/src/Overlay.NET/Directx/Direct2DRenderer.cs b/src/Overlay.NET/Directx/Direct2DRenderer.cs index 558c4f3..8f73826 100644 --- a/src/Overlay.NET/Directx/Direct2DRenderer.cs +++ b/src/Overlay.NET/Directx/Direct2DRenderer.cs @@ -42,15 +42,10 @@ namespace Overlay.NET.Directx { //transparent background color /// - /// The GDI transparent + /// The transparent. Must be all zero: the render target is premultiplied, so Color.Transparent + /// (ARGB 0,255,255,255) would be additive white instead of transparent. /// - private static Color _gdiTransparent = Color.Transparent; - - /// - /// The transparent - /// - private static readonly RawColor4 Transparent = new RawColor4(_gdiTransparent.R, _gdiTransparent.G, _gdiTransparent.B, - _gdiTransparent.A); + private static readonly RawColor4 Transparent = new RawColor4(0, 0, 0, 0); //direct x vars ///