From 56ac3d6c324ec4520dac433b071ecab6227fb459 Mon Sep 17 00:00:00 2001 From: Stenzek Date: Fri, 4 Aug 2023 21:39:33 +1000 Subject: [PATCH] HostDisplay: Fix incorrectly positioned screenshots --- src/core/host_display.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/host_display.cpp b/src/core/host_display.cpp index 5da2f140d..18cd5785d 100644 --- a/src/core/host_display.cpp +++ b/src/core/host_display.cpp @@ -675,7 +675,7 @@ bool HostDisplay::WriteScreenshotToFile(std::string filename, bool internal_reso u32 pixels_stride; GPUTexture::Format pixels_format; if (!RenderScreenshot(width, height, - Common::Rectangle::FromExtents(draw_top, draw_left, draw_width, draw_height), &pixels, + Common::Rectangle::FromExtents(draw_left, draw_top, draw_width, draw_height), &pixels, &pixels_stride, &pixels_format)) { Log_ErrorPrintf("Failed to render %ux%u screenshot", width, height);