Skip to content

Commit

Permalink
HostDisplay: Fix incorrectly positioned screenshots
Browse files Browse the repository at this point in the history
  • Loading branch information
stenzek committed Aug 4, 2023
1 parent 0575588 commit 56ac3d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/host_display.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<s32>::FromExtents(draw_top, draw_left, draw_width, draw_height), &pixels,
Common::Rectangle<s32>::FromExtents(draw_left, draw_top, draw_width, draw_height), &pixels,
&pixels_stride, &pixels_format))
{
Log_ErrorPrintf("Failed to render %ux%u screenshot", width, height);
Expand Down

0 comments on commit 56ac3d6

Please sign in to comment.