mirror of
https://git.citron-emu.org/citron/emulator
synced 2025-12-19 18:53:32 +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);
|
||||
|
||||
@@ -214,7 +214,7 @@ void ConfigurePerGame::UpdateTheme() {
|
||||
rainbow_hue = 0.0f;
|
||||
}
|
||||
|
||||
QColor accent_color = QColor::fromHsvF(rainbow_hue, 0.8, 1.0);
|
||||
QColor accent_color = QColor::fromHsvF(rainbow_hue, 0.8f, 1.0f);
|
||||
QColor accent_color_hover = accent_color.lighter(115);
|
||||
QColor accent_color_pressed = accent_color.darker(120);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user