1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2025-12-23 15:52:55 +01:00

Apply code style to context functions

This commit is contained in:
Duncan
2022-11-06 20:49:07 +00:00
committed by GitHub
parent 27f3a3a796
commit 482971710d
104 changed files with 557 additions and 558 deletions

View File

@@ -90,11 +90,11 @@ void screenshot_check()
if (!screenshotPath.empty())
{
OpenRCT2::Audio::Play(OpenRCT2::Audio::SoundId::WindowOpen, 100, context_get_width() / 2);
OpenRCT2::Audio::Play(OpenRCT2::Audio::SoundId::WindowOpen, 100, ContextGetWidth() / 2);
}
else
{
context_show_error(STR_SCREENSHOT_FAILED, STR_NONE, {});
ContextShowError(STR_SCREENSHOT_FAILED, STR_NONE, {});
}
// redraw_weather();
@@ -379,12 +379,12 @@ void screenshot_giant()
Formatter ft;
ft.Add<StringId>(STR_STRING);
ft.Add<const utf8*>(filename.c_str());
context_show_error(STR_SCREENSHOT_SAVED_AS, STR_NONE, ft);
ContextShowError(STR_SCREENSHOT_SAVED_AS, STR_NONE, ft);
}
catch (const std::exception& e)
{
log_error("%s", e.what());
context_show_error(STR_SCREENSHOT_FAILED, STR_NONE, {});
ContextShowError(STR_SCREENSHOT_FAILED, STR_NONE, {});
}
ReleaseDPI(dpi);