diff --git a/src/openrct2/interface/Screenshot.cpp b/src/openrct2/interface/Screenshot.cpp index 3e785120b1..7befc09abb 100644 --- a/src/openrct2/interface/Screenshot.cpp +++ b/src/openrct2/interface/Screenshot.cpp @@ -190,36 +190,6 @@ std::string ScreenshotDumpPNG(DrawPixelInfo& dpi) return ""; } -std::string ScreenshotDumpPNG32bpp(int32_t width, int32_t height, const void* pixels) -{ - auto path = ScreenshotGetNextPath(); - - if (!path.has_value()) - { - return ""; - } - - const auto pixels8 = static_cast(pixels); - const auto pixelsLen = width * 4 * height; - - try - { - Image image; - image.Width = width; - image.Height = height; - image.Depth = 32; - image.Stride = width * 4; - image.Pixels = std::vector(pixels8, pixels8 + pixelsLen); - Imaging::WriteToFile(path.value(), image, IMAGE_FORMAT::PNG_32); - return path.value(); - } - catch (const std::exception& e) - { - LOG_ERROR("Unable to save screenshot: %s", e.what()); - return ""; - } -} - static int32_t GetHighestBaseClearanceZ(const CoordsXY& location, const bool useViewClipping) { int32_t z = 0; diff --git a/src/openrct2/interface/Screenshot.h b/src/openrct2/interface/Screenshot.h index 667c7022bd..5a287b0f2c 100644 --- a/src/openrct2/interface/Screenshot.h +++ b/src/openrct2/interface/Screenshot.h @@ -54,7 +54,6 @@ struct CaptureOptions void ScreenshotCheck(); std::string ScreenshotDump(); std::string ScreenshotDumpPNG(DrawPixelInfo& dpi); -std::string ScreenshotDumpPNG32bpp(int32_t width, int32_t height, const void* pixels); void ScreenshotGiant(); int32_t CommandLineForScreenshot(const char** argv, int32_t argc, ScreenshotOptions* options);