From e7b28322c13a2f0fdd9549f25f41ba54adc8aacd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Basile=20Cl=C3=A9ment?= Date: Thu, 1 May 2025 13:21:17 +0200 Subject: [PATCH] Use qSin instead of sin Fix build failures with old GCC. --- cockatrice/src/settings/card_counter_settings.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cockatrice/src/settings/card_counter_settings.cpp b/cockatrice/src/settings/card_counter_settings.cpp index 1cb989452..0d0640e61 100644 --- a/cockatrice/src/settings/card_counter_settings.cpp +++ b/cockatrice/src/settings/card_counter_settings.cpp @@ -29,8 +29,8 @@ QColor CardCounterSettings::color(int counterId) const } else { // Future-proof support for more counters with pseudo-random colors int h = (counterId * 37) % 360; - int s = 128 + 64 * sin((counterId * 97) * 0.1); // 64-192 - int v = 196 + 32 * sin((counterId * 101) * 0.07); // 164-228 + int s = 128 + 64 * qSin((counterId * 97) * 0.1); // 64-192 + int v = 196 + 32 * qSin((counterId * 101) * 0.07); // 164-228 defaultColor = QColor::fromHsv(h, s, v); }