1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2025-12-24 00:03:11 +01:00

Close #12404: Refactor DRAWING_ENGINE to use strong enum (#13070)

This commit is contained in:
Julia Pinheiro
2020-10-02 22:41:30 -03:00
committed by GitHub
parent d33ddaba2c
commit 8800c32e52
13 changed files with 56 additions and 53 deletions

View File

@@ -495,7 +495,7 @@ static void benchgfx_render_screenshots(const char* inputPath, std::unique_ptr<I
}
const double average = totalTime / static_cast<double>(totalRenderCount);
const auto engineStringId = DrawingEngineStringIds[DRAWING_ENGINE_SOFTWARE];
const auto engineStringId = DrawingEngineStringIds[EnumValue(DrawingEngine::Software)];
const auto engineName = format_string(engineStringId, nullptr);
std::printf("Engine: %s\n", engineName.c_str());
std::printf("Render Count: %u\n", totalRenderCount);