Browse Source
Merge pull request #9600 from kivarsen/fix-controlcatalog-desktop-dxgi-crash
Fix crash when launching ControlCatalog.Desktop (see #9599)
pull/9605/head
Nikita Tsukanov
3 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
2 additions and
2 deletions
-
src/Windows/Avalonia.Win32/DirectX/DirectXStructs.cs
|
|
|
@ -1245,7 +1245,7 @@ namespace Avalonia.Win32.DxgiSwapchain |
|
|
|
|
|
|
|
internal RECT DesktopCoordinates; |
|
|
|
|
|
|
|
internal bool AttachedToDesktop; |
|
|
|
internal int AttachedToDesktop; // BOOL maps to int. If we use the CLR 'bool' type here, the struct becomes non-blittable. See #9599
|
|
|
|
|
|
|
|
internal DXGI_MODE_ROTATION Rotation; |
|
|
|
|
|
|
|
@ -1323,7 +1323,7 @@ namespace Avalonia.Win32.DxgiSwapchain |
|
|
|
public uint Width; |
|
|
|
public uint Height; |
|
|
|
public DXGI_FORMAT Format; |
|
|
|
public bool Stereo; |
|
|
|
public int Stereo; // BOOL maps to int. If we use the CLR 'bool' type here, the struct becomes non-blittable. See #9599
|
|
|
|
public DXGI_SAMPLE_DESC SampleDesc; |
|
|
|
public uint BufferUsage; |
|
|
|
public uint BufferCount; |
|
|
|
|