some linkage changes

This commit is contained in:
Honkazel 2025-04-08 19:07:13 +05:00
parent c980c7e463
commit f5923529e2
2 changed files with 3 additions and 3 deletions

View file

@ -83,13 +83,13 @@ CColor::XYZ Hyprgraphics::xy2xyz(const CColor::xy& xy) {
return {.x = xy.x / xy.y, .y = 1.0, .z = (1.0 - xy.x - xy.y) / xy.y};
}
CMatrix3 Bradford = CMatrix3(std::array<std::array<double, 3>, 3>{
static CMatrix3 Bradford = CMatrix3(std::array<std::array<double, 3>, 3>{
0.8951, 0.2664, -0.1614, //
-0.7502, 1.7135, 0.0367, //
0.0389, -0.0685, 1.0296, //
});
CMatrix3 BradfordInv = Bradford.invert();
static CMatrix3 BradfordInv = Bradford.invert();
CMatrix3 Hyprgraphics::adaptWhite(const CColor::xy& src, const CColor::xy& dst) {
if (src == dst)

View file

@ -7,7 +7,7 @@
using namespace Hyprgraphics;
bool tryLoadImage(const std::string& path) {
static bool tryLoadImage(const std::string& path) {
auto image = CImage(path);
if (!image.success()) {