mirror of
https://github.com/hedge-dev/UnleashedRecomp
synced 2026-09-01 02:11:47 -04:00
Downgrade to C++20 & switch to fmtlib.
This commit is contained in:
@@ -521,7 +521,7 @@ static void DrawAchievementTotal(ImVec2 min, ImVec2 max)
|
||||
if (records >= recordsHalfTotal || records >= ACH_RECORDS)
|
||||
DrawTrophySparkles(imageMin, imageMax, records, frameIndex);
|
||||
|
||||
auto str = std::format("{} / {}", records, ACH_RECORDS);
|
||||
auto str = fmt::format("{} / {}", records, ACH_RECORDS);
|
||||
auto fontSize = Scale(20);
|
||||
auto textSize = g_fntNewRodinDB->CalcTextSizeA(fontSize, FLT_MAX, 0, str.c_str());
|
||||
|
||||
|
||||
@@ -739,11 +739,11 @@ static void DrawConfigOption(int32_t rowIndex, float yOffset, ConfigDef<T>* conf
|
||||
std::string valueText;
|
||||
if constexpr (std::is_same_v<T, float>)
|
||||
{
|
||||
valueText = std::format("{}%", int32_t(round(config->Value * 100.0f)));
|
||||
valueText = fmt::format("{}%", int32_t(round(config->Value * 100.0f)));
|
||||
}
|
||||
else if constexpr (std::is_same_v<T, int32_t>)
|
||||
{
|
||||
valueText = config->Value >= valueMax ? Localise("Options_Value_Max") : std::format("{}", config->Value);
|
||||
valueText = config->Value >= valueMax ? Localise("Options_Value_Max") : fmt::format("{}", config->Value);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
@@ -105,7 +105,7 @@ int Window_OnSDLEvent(void*, SDL_Event* event)
|
||||
m_isResizing = true;
|
||||
Window::s_width = event->window.data1;
|
||||
Window::s_height = event->window.data2;
|
||||
Window::SetTitle(std::format("{} - [{}x{}]", Window::GetTitle(), Window::s_width, Window::s_height).c_str());
|
||||
Window::SetTitle(fmt::format("{} - [{}x{}]", Window::GetTitle(), Window::s_width, Window::s_height).c_str());
|
||||
break;
|
||||
|
||||
case SDL_WINDOWEVENT_MOVED:
|
||||
|
||||
Reference in New Issue
Block a user