mirror of
https://github.com/The-Powder-Toy/The-Powder-Toy.git
synced 2025-08-31 11:41:51 +02:00
Fix simulation-only screenshots being WINDOWW pixels wide
That is, rather than XRES pixels wide. Broken since f52e047037
, where RendererFrame started being dumped directly rather than via Renderer::DumpFrame, which took care of the required cropping.
This commit is contained in:
@@ -944,7 +944,7 @@ ByteString GameView::TakeScreenshot(int captureUI, int fileType)
|
||||
}
|
||||
else
|
||||
{
|
||||
screenshot = std::make_unique<VideoBuffer>(*rendererFrame);
|
||||
screenshot = std::make_unique<VideoBuffer>(rendererFrame->data(), RES, WINDOW.X);
|
||||
}
|
||||
|
||||
ByteString filename;
|
||||
|
Reference in New Issue
Block a user