mirror of
https://github.com/WinampDesktop/winamp.git
synced 2025-04-27 12:25:41 -04:00
HostDisplay: Fix incorrectly positioned screenshots
This commit is contained in:
parent
0575588e20
commit
56ac3d6c32
@ -675,7 +675,7 @@ bool HostDisplay::WriteScreenshotToFile(std::string filename, bool internal_reso
|
|||||||
u32 pixels_stride;
|
u32 pixels_stride;
|
||||||
GPUTexture::Format pixels_format;
|
GPUTexture::Format pixels_format;
|
||||||
if (!RenderScreenshot(width, height,
|
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))
|
&pixels_stride, &pixels_format))
|
||||||
{
|
{
|
||||||
Log_ErrorPrintf("Failed to render %ux%u screenshot", width, height);
|
Log_ErrorPrintf("Failed to render %ux%u screenshot", width, height);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user