update hyprgraphics

This commit is contained in:
Felix Salcher 2025-10-14 14:47:11 +02:00
parent 476ee484a9
commit d2ee397ebf
No known key found for this signature in database
2 changed files with 5 additions and 4 deletions

6
flake.lock generated
View file

@ -13,11 +13,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1759490292, "lastModified": 1760445448,
"narHash": "sha256-T6iWzDOXp8Wv0KQOCTHpBcmAOdHJ6zc/l9xaztW6Ivc=", "narHash": "sha256-fXGjL6dw31FPFRrmIemzGiNSlfvEJTJNsmadZi+qNhI=",
"owner": "hyprwm", "owner": "hyprwm",
"repo": "hyprgraphics", "repo": "hyprgraphics",
"rev": "9431db625cd9bb66ac55525479dce694101d6d7a", "rev": "50fb9f069219f338a11cf0bcccb9e58357d67757",
"type": "github" "type": "github"
}, },
"original": { "original": {

View file

@ -10,6 +10,7 @@
#include <cstdint> #include <cstdint>
#include <functional> #include <functional>
#include <hyprgraphics/resource/resources/ImageResource.hpp> #include <hyprgraphics/resource/resources/ImageResource.hpp>
#include <hyprgraphics/resource/resources/StaticImageResource.hpp>
#include <hyprgraphics/image/Image.hpp> #include <hyprgraphics/image/Image.hpp>
#include <sys/eventfd.h> #include <sys/eventfd.h>
#include <sys/poll.h> #include <sys/poll.h>
@ -100,7 +101,7 @@ ResourceID CAsyncResourceManager::requestImage(const std::span<const uint8_t> da
return RESOURCEID; return RESOURCEID;
} }
auto resource = makeAtomicShared<CImageResource>(data, eImageFormat::IMAGE_FORMAT_PNG); auto resource = makeAtomicShared<CStaticImageResource>(data, eImageFormat::IMAGE_FORMAT_PNG);
CAtomicSharedPointer<IAsyncResource> resourceGeneric{resource}; CAtomicSharedPointer<IAsyncResource> resourceGeneric{resource};
Debug::log(TRACE, "Requesting image (resourceID: {})", RESOURCEID, (uintptr_t)widget.get()); Debug::log(TRACE, "Requesting image (resourceID: {})", RESOURCEID, (uintptr_t)widget.get());