Веб-сайт самохостера Lotigara

summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKae <80987908+Novaenia@users.noreply.github.com>2025-06-06 12:36:12 +1000
committerKae <80987908+Novaenia@users.noreply.github.com>2025-06-06 12:36:12 +1000
commit73e71cb452ee4cfd4453fb4051593db4d0d5293b (patch)
tree884fae120ca817289ebdffc750d79f421059a7d7
parent05df0cb288178b520d61500080f569b20bbb0af6 (diff)
Update StarColor.cpp
[skip ci]
-rw-r--r--source/core/StarColor.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/source/core/StarColor.cpp b/source/core/StarColor.cpp
index 3908003..e885156 100644
--- a/source/core/StarColor.cpp
+++ b/source/core/StarColor.cpp
@@ -124,6 +124,11 @@ Color Color::temperature(float temp) {
return c;
}
+#ifdef __GNUC__
+#pragma GCC push_options
+#pragma GCC optimize("-fno-fast-math", "-fassociative-math", "-freciprocal-math")
+#endif
+
Color Color::rgb(Vec3B const& c) {
return rgb(c[0], c[1], c[2]);
}
@@ -322,10 +327,6 @@ Vec3F Color::toRgbF() const {
return Vec3F(redF(), greenF(), blueF());
}
-#ifdef __GNUC__
-#pragma GCC push_options
-#pragma GCC optimize("-fno-fast-math", "-fassociative-math", "-freciprocal-math")
-#endif
Vec4F Color::toHsva() const {
float h, s, v;