From 10c4f4ba359f5c391683f44153a6e1ceb074811f Mon Sep 17 00:00:00 2001 From: Felix Dick Date: Thu, 29 Sep 2022 04:01:26 +0200 Subject: Shift splash up if monitor has wider ratio than bgTexture. --- src/render/OpenGL.hpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/render/OpenGL.hpp') diff --git a/src/render/OpenGL.hpp b/src/render/OpenGL.hpp index e3350c15..5d205407 100644 --- a/src/render/OpenGL.hpp +++ b/src/render/OpenGL.hpp @@ -140,10 +140,9 @@ private: CFramebuffer* blurMainFramebufferWithDamage(float a, wlr_box* pBox, pixman_region32_t* damage); void renderTextureInternalWithDamage(const CTexture&, wlr_box* pBox, float a, pixman_region32_t* damage, int round = 0, bool discardOpaque = false, bool noAA = false, bool allowCustomUV = false, bool allowDim = false); - - void renderSplash(cairo_t *const, cairo_surface_t *const); + void renderSplash(cairo_t *const, cairo_surface_t *const, double); void preBlurForCurrentMonitor(); }; -inline std::unique_ptr g_pHyprOpenGL; \ No newline at end of file +inline std::unique_ptr g_pHyprOpenGL; -- cgit v1.2.3