mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2025-12-24 00:03:11 +01:00
Rename classes with snakes OpenRCT2/A*-F* (#19215)
* Rename classes with snakes OpenRCT2/A*-F* * Clang format files
This commit is contained in:
@@ -51,7 +51,7 @@ extern uint8_t gClipHeight;
|
||||
|
||||
uint8_t gScreenshotCountdown = 0;
|
||||
|
||||
static bool WriteDpiToFile(std::string_view path, const rct_drawpixelinfo* dpi, const GamePalette& palette)
|
||||
static bool WriteDpiToFile(std::string_view path, const DrawPixelInfo* dpi, const GamePalette& palette)
|
||||
{
|
||||
auto const pixels8 = dpi->bits;
|
||||
auto const pixelsLen = (dpi->width + dpi->pitch) * dpi->height;
|
||||
@@ -164,7 +164,7 @@ static std::optional<std::string> ScreenshotGetNextPath()
|
||||
return std::nullopt;
|
||||
};
|
||||
|
||||
std::string ScreenshotDumpPNG(rct_drawpixelinfo* dpi)
|
||||
std::string ScreenshotDumpPNG(DrawPixelInfo* dpi)
|
||||
{
|
||||
// Get a free screenshot path
|
||||
auto path = ScreenshotGetNextPath();
|
||||
@@ -249,9 +249,9 @@ static int32_t GetTallestVisibleTileTop(
|
||||
return minViewY - 64;
|
||||
}
|
||||
|
||||
static rct_drawpixelinfo CreateDPI(const rct_viewport& viewport)
|
||||
static DrawPixelInfo CreateDPI(const rct_viewport& viewport)
|
||||
{
|
||||
rct_drawpixelinfo dpi;
|
||||
DrawPixelInfo dpi;
|
||||
dpi.width = viewport.width;
|
||||
dpi.height = viewport.height;
|
||||
dpi.bits = new (std::nothrow) uint8_t[dpi.width * dpi.height];
|
||||
@@ -268,7 +268,7 @@ static rct_drawpixelinfo CreateDPI(const rct_viewport& viewport)
|
||||
return dpi;
|
||||
}
|
||||
|
||||
static void ReleaseDPI(rct_drawpixelinfo& dpi)
|
||||
static void ReleaseDPI(DrawPixelInfo& dpi)
|
||||
{
|
||||
if (dpi.bits != nullptr)
|
||||
delete[] dpi.bits;
|
||||
@@ -324,7 +324,7 @@ static rct_viewport GetGiantViewport(int32_t rotation, ZoomLevel zoom)
|
||||
return viewport;
|
||||
}
|
||||
|
||||
static void RenderViewport(IDrawingEngine* drawingEngine, const rct_viewport& viewport, rct_drawpixelinfo& dpi)
|
||||
static void RenderViewport(IDrawingEngine* drawingEngine, const rct_viewport& viewport, DrawPixelInfo& dpi)
|
||||
{
|
||||
// Ensure sprites appear regardless of rotation
|
||||
ResetAllSpriteQuadrantPlacements();
|
||||
@@ -341,7 +341,7 @@ static void RenderViewport(IDrawingEngine* drawingEngine, const rct_viewport& vi
|
||||
|
||||
void ScreenshotGiant()
|
||||
{
|
||||
rct_drawpixelinfo dpi{};
|
||||
DrawPixelInfo dpi{};
|
||||
try
|
||||
{
|
||||
auto path = ScreenshotGetNextPath();
|
||||
@@ -414,7 +414,7 @@ static void BenchgfxRenderScreenshots(const char* inputPath, std::unique_ptr<ICo
|
||||
// rotation.
|
||||
constexpr int32_t NUM_ROTATIONS = 4;
|
||||
constexpr auto NUM_ZOOM_LEVELS = static_cast<int8_t>(ZoomLevel::max());
|
||||
std::array<rct_drawpixelinfo, NUM_ROTATIONS * NUM_ZOOM_LEVELS> dpis;
|
||||
std::array<DrawPixelInfo, NUM_ROTATIONS * NUM_ZOOM_LEVELS> dpis;
|
||||
std::array<rct_viewport, NUM_ROTATIONS * NUM_ZOOM_LEVELS> viewports;
|
||||
|
||||
for (ZoomLevel zoom{ 0 }; zoom < ZoomLevel::max(); zoom++)
|
||||
@@ -584,7 +584,7 @@ int32_t CmdlineForScreenshot(const char** argv, int32_t argc, ScreenshotOptions*
|
||||
}
|
||||
|
||||
int32_t exitCode = 1;
|
||||
rct_drawpixelinfo dpi;
|
||||
DrawPixelInfo dpi;
|
||||
try
|
||||
{
|
||||
Platform::CoreInit();
|
||||
|
||||
Reference in New Issue
Block a user