mirror of
https://github.com/The-Powder-Toy/The-Powder-Toy.git
synced 2025-08-20 07:01:27 +02:00
Fix the "fullscreen" parameter of tpt.screenshot being inverted
Broken since c8c0f90871
, where this got accidentally inverted.
This commit is contained in:
@@ -940,11 +940,11 @@ ByteString GameView::TakeScreenshot(int captureUI, int fileType)
|
|||||||
std::unique_ptr<VideoBuffer> screenshot;
|
std::unique_ptr<VideoBuffer> screenshot;
|
||||||
if (captureUI)
|
if (captureUI)
|
||||||
{
|
{
|
||||||
screenshot = std::make_unique<VideoBuffer>(*rendererFrame);
|
screenshot = std::make_unique<VideoBuffer>(ui::Engine::Ref().g->DumpFrame());
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
screenshot = std::make_unique<VideoBuffer>(ui::Engine::Ref().g->DumpFrame());
|
screenshot = std::make_unique<VideoBuffer>(*rendererFrame);
|
||||||
}
|
}
|
||||||
|
|
||||||
ByteString filename;
|
ByteString filename;
|
||||||
|
Reference in New Issue
Block a user