mirror of
https://github.com/hyprwm/hyprlock.git
synced 2025-05-12 21:30:37 +01:00
image: remove left over raw pointer to COutput (#735)
This commit is contained in:
parent
8f73c39f07
commit
71d35aa75f
2 changed files with 6 additions and 4 deletions
|
@ -78,7 +78,8 @@ void CImage::plantTimer() {
|
|||
void CImage::configure(const std::unordered_map<std::string, std::any>& props, const SP<COutput>& pOutput) {
|
||||
reset();
|
||||
|
||||
viewport = pOutput->getViewport();
|
||||
viewport = pOutput->getViewport();
|
||||
stringPort = pOutput->stringPort;
|
||||
|
||||
shadow.configure(m_self.lock(), props, viewport);
|
||||
|
||||
|
@ -230,5 +231,5 @@ void CImage::renderUpdate() {
|
|||
g_pHyprlock->addTimer(std::chrono::milliseconds(100), [REF = m_self](auto, auto) { onAssetCallback(REF); }, nullptr);
|
||||
}
|
||||
|
||||
g_pHyprlock->renderOutput(output->stringPort);
|
||||
g_pHyprlock->renderOutput(stringPort);
|
||||
}
|
||||
|
|
|
@ -54,9 +54,10 @@ class CImage : public IWidget {
|
|||
CAsyncResourceGatherer::SPreloadRequest request;
|
||||
|
||||
Vector2D viewport;
|
||||
std::string stringPort;
|
||||
|
||||
std::string resourceID;
|
||||
std::string pendingResourceID; // if reloading image
|
||||
SPreloadedAsset* asset = nullptr;
|
||||
COutput* output = nullptr;
|
||||
SPreloadedAsset* asset = nullptr;
|
||||
CShadowable shadow;
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue