fix: resolve C4305 truncation warnings in QColor::fromHsvF calls

Add 'f' suffix to prevent double->float truncation warnings being treated as errors

Signed-off-by: Zephyron <zephyron@citron-emu.org>
This commit is contained in:
Zephyron
2025-10-06 12:49:43 +10:00
parent 09b2fefa31
commit dafdc1c775
2 changed files with 2 additions and 2 deletions

View File

@@ -182,7 +182,7 @@ void ConfigureDialog::UpdateTheme() {
if (rainbow_hue > 1.0f) {
rainbow_hue = 0.0f;
}
accent_color_str = QColor::fromHsvF(rainbow_hue, 0.8, 1.0).name();
accent_color_str = QColor::fromHsvF(rainbow_hue, 0.8f, 1.0f).name();
if (!rainbow_timer->isActive()) {
// THE FIX: Use a sane timer interval to prevent UI lag.
rainbow_timer->start(100);