mirror of
https://git.citron-emu.org/citron/emulator
synced 2025-12-19 10:43:33 +00:00
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user