From 9c0e2bba54b8b14178c25c552d1be1089e2191ba Mon Sep 17 00:00:00 2001 From: vaxerski <43317083+vaxerski@users.noreply.github.com> Date: Fri, 3 Mar 2023 13:18:44 +0000 Subject: [PATCH] Renderer: Nuke onWindowResize{start/end} --- src/Window.cpp | 3 --- src/render/OpenGL.cpp | 4 ---- src/render/OpenGL.hpp | 3 --- 3 files changed, 10 deletions(-) diff --git a/src/Window.cpp b/src/Window.cpp index c54ec0dc..4de6d5a9 100644 --- a/src/Window.cpp +++ b/src/Window.cpp @@ -355,9 +355,6 @@ void CWindow::onMap() { m_cRealShadowColor.registerVar(); m_fDimPercent.registerVar(); - m_vRealSize.setCallbackOnEnd([&](void* ptr) { g_pHyprOpenGL->onWindowResizeEnd(this); }, false); - m_vRealSize.setCallbackOnBegin([&](void* ptr) { g_pHyprOpenGL->onWindowResizeStart(this); }, false); - m_fBorderAngleAnimationProgress.setCallbackOnEnd([&](void* ptr) { onBorderAngleAnimEnd(ptr); }, false); m_fBorderAngleAnimationProgress.setValueAndWarp(0.f); diff --git a/src/render/OpenGL.cpp b/src/render/OpenGL.cpp index 0d2327a0..1d13037b 100644 --- a/src/render/OpenGL.cpp +++ b/src/render/OpenGL.cpp @@ -1204,10 +1204,6 @@ void CHyprOpenGLImpl::makeLayerSnapshot(SLayerSurface* pLayer) { wlr_output_rollback(PMONITOR->output); } -void CHyprOpenGLImpl::onWindowResizeStart(CWindow* pWindow) {} - -void CHyprOpenGLImpl::onWindowResizeEnd(CWindow* pWindow) {} - void CHyprOpenGLImpl::renderSnapshot(CWindow** pWindow) { RASSERT(m_RenderData.pMonitor, "Tried to render snapshot rect without begin()!"); const auto PWINDOW = *pWindow; diff --git a/src/render/OpenGL.hpp b/src/render/OpenGL.hpp index 2b71c000..537d7143 100644 --- a/src/render/OpenGL.hpp +++ b/src/render/OpenGL.hpp @@ -103,9 +103,6 @@ class CHyprOpenGLImpl { void saveBufferForMirror(); void renderMirrored(); - void onWindowResizeStart(CWindow*); - void onWindowResizeEnd(CWindow*); - void applyScreenShader(const std::string& path); SCurrentRenderData m_RenderData;