Fix transparency
This commit is contained in:
@@ -42,15 +42,10 @@ namespace Overlay.NET.Directx {
|
|||||||
|
|
||||||
//transparent background color
|
//transparent background color
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 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.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
private static Color _gdiTransparent = Color.Transparent;
|
private static readonly RawColor4 Transparent = new RawColor4(0, 0, 0, 0);
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// The transparent
|
|
||||||
/// </summary>
|
|
||||||
private static readonly RawColor4 Transparent = new RawColor4(_gdiTransparent.R, _gdiTransparent.G, _gdiTransparent.B,
|
|
||||||
_gdiTransparent.A);
|
|
||||||
|
|
||||||
//direct x vars
|
//direct x vars
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
|||||||
Reference in New Issue
Block a user