SwapChain.AspectRatio fix

This commit is contained in:
Simon Lübeß
2022-01-22 10:44:10 +01:00
parent 69be98bb38
commit 5b1f694bc9
+1 -1
View File
@@ -53,7 +53,7 @@ namespace GlitchyEngine.Renderer
/** /**
* Gets the aspect ratio of the backbuffer. * Gets the aspect ratio of the backbuffer.
*/ */
public float AspectRatio => _width / _height; public float AspectRatio => (float)_width / _height;
public Viewport BackbufferViewport => _backBufferViewport; public Viewport BackbufferViewport => _backBufferViewport;