From c29404eea6caa2047ebb9b44f2683c3819e406e1 Mon Sep 17 00:00:00 2001 From: Tudor Brindus Date: Sun, 5 Nov 2023 20:39:12 -0500 Subject: [PATCH] [host] DXGI: fixed swapped `rows` and `cols` variables In practice this worked out because `rows = cols`, but this will change in future commits as I implement RGB24 damage support. --- host/platform/Windows/capture/DXGI/src/dxgi.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/host/platform/Windows/capture/DXGI/src/dxgi.c b/host/platform/Windows/capture/DXGI/src/dxgi.c index 80b8e52c..a7f89507 100644 --- a/host/platform/Windows/capture/DXGI/src/dxgi.c +++ b/host/platform/Windows/capture/DXGI/src/dxgi.c @@ -95,7 +95,7 @@ static CaptureResult dxgi_releaseFrame(void); static bool ppInit(const DXGIPostProcess * pp, bool shareable); static ID3D11Texture2D * ppRun(Texture * tex, ID3D11Texture2D * src, int * width, int * height, - int * rows , int * cols, + int * cols , int * rows, CaptureFormat * format); static void ppFreeAll(void); @@ -1468,7 +1468,7 @@ static bool ppInit(const DXGIPostProcess * pp, bool shareable) static ID3D11Texture2D * ppRun(Texture * tex, ID3D11Texture2D * src, int * width, int * height, - int * rows, int * cols, + int * cols , int * rows, CaptureFormat * format) { PostProcessInstance * inst;