Fix the "fullscreen" parameter of tpt.screenshot being inverted

Broken since c8c0f90871, where this got accidentally inverted.
This commit is contained in:
Tamás Bálint Misius
2025-06-30 20:53:01 +02:00
parent 18e3784ab7
commit 1f04a7dfb7

View File

@@ -940,11 +940,11 @@ ByteString GameView::TakeScreenshot(int captureUI, int fileType)
std::unique_ptr<VideoBuffer> screenshot;
if (captureUI)
{
screenshot = std::make_unique<VideoBuffer>(*rendererFrame);
screenshot = std::make_unique<VideoBuffer>(ui::Engine::Ref().g->DumpFrame());
}
else
{
screenshot = std::make_unique<VideoBuffer>(ui::Engine::Ref().g->DumpFrame());
screenshot = std::make_unique<VideoBuffer>(*rendererFrame);
}
ByteString filename;