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:
Tamás Bálint Misius
2025-06-30 20:57:02 +02:00
parent 1f04a7dfb7
commit 5e0fc38b8f

View File

@@ -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;