[idd] config: retain four-decimal refresh rates

This commit is contained in:
Geoffrey McRae
2026-08-17 02:09:58 +10:00
parent c0de47b1e1
commit 9d074519b2
16 changed files with 93 additions and 76 deletions

View File

@@ -22,5 +22,8 @@
#include <string>
bool LGParseRefreshRate(const std::wstring& text, unsigned& refreshMilliHz);
std::wstring LGFormatRefreshRate(unsigned refreshMilliHz);
// Refresh rates are represented in 100 microhertz units.
static constexpr unsigned LG_REFRESH_RATE_SCALE = 10000;
bool LGParseRefreshRate(const std::wstring& text, unsigned& refresh100uHz);
std::wstring LGFormatRefreshRate(unsigned refresh100uHz);