Specialize description for resolution scale by reference.

This commit is contained in:
Skyth 2024-12-06 18:35:07 +03:00
parent 6a2bf9162c
commit 70513985a7

View file

@ -943,7 +943,7 @@ static void DrawInfoPanel()
else
{
// Specialised description for resolution scale
if (g_selectedItem->GetName() == "ResolutionScale")
if (g_selectedItem == &Config::ResolutionScale)
{
char buf[100];
auto resScale = round(*(float*)g_selectedItem->GetValue() * 1000) / 1000;