mirror of
https://github.com/hyprwm/hyprgraphics.git
synced 2025-12-24 16:30:03 +01:00
some linkage changes
This commit is contained in:
parent
c980c7e463
commit
f5923529e2
2 changed files with 3 additions and 3 deletions
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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()) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue