From 577c9297c3c75fee936b27bef90a98b5effa5b05 Mon Sep 17 00:00:00 2001 From: vaxerski <43317083+vaxerski@users.noreply.github.com> Date: Sun, 29 Jan 2023 16:34:42 +0000 Subject: [PATCH] remove unused values and fixup log --- src/Hyprpaper.cpp | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/Hyprpaper.cpp b/src/Hyprpaper.cpp index 013b407..d7806ed 100644 --- a/src/Hyprpaper.cpp +++ b/src/Hyprpaper.cpp @@ -477,12 +477,7 @@ void CHyprpaper::renderWallpaperForMonitor(SMonitor* pMonitor) { wl_surface_set_buffer_scale(pMonitor->pCurrentLayerSurface->pSurface, pMonitor->scale); wl_surface_damage_buffer(pMonitor->pCurrentLayerSurface->pSurface, 0, 0, 0xFFFF, 0xFFFF); if (pMonitor->pCurrentLayerSurface->pFractionalScaleInfo) { - wl_fixed_t w, h; - w = wl_fixed_from_int(static_cast(std::round(DIMENSIONS.x))); - h = wl_fixed_from_int(static_cast(std::round(DIMENSIONS.y))); - - Debug::log(LOG, "Submitting %ix%i", static_cast(std::round(DIMENSIONS.x)), static_cast(std::round(DIMENSIONS.y))); - + Debug::log(LOG, "Submitting viewport dest size %ix%i for %x", static_cast(std::round(DIMENSIONS.x)), static_cast(std::round(DIMENSIONS.y)), pMonitor->pCurrentLayerSurface); wp_viewport_set_destination(pMonitor->pCurrentLayerSurface->pViewport, static_cast(std::round(DIMENSIONS.x)), static_cast(std::round(DIMENSIONS.y))); } wl_surface_commit(pMonitor->pCurrentLayerSurface->pSurface);