From 0de15805200bf4ec0c9815f2c4415331e7853906 Mon Sep 17 00:00:00 2001 From: Nimetu Date: Fri, 24 Sep 2021 08:32:04 +0300 Subject: [PATCH] Fix background overflow on items limited with maxw/maxh --- nel/src/gui/css_background_renderer.cpp | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/nel/src/gui/css_background_renderer.cpp b/nel/src/gui/css_background_renderer.cpp index 4d7df021e..230807068 100644 --- a/nel/src/gui/css_background_renderer.cpp +++ b/nel/src/gui/css_background_renderer.cpp @@ -140,13 +140,6 @@ namespace NLGUI // flush draw cache to ensure correct draw order rVR.flush(); - sint32 clipX, clipY, clipW, clipH; - if (m_Viewport) - { - rVR.getClipWindow(clipX, clipY, clipW, clipH); - rVR.setClipWindow(m_Viewport->getXReal(), m_Viewport->getYReal(), m_Viewport->getWReal(), m_Viewport->getHReal()); - } - // TODO: no need for widget manager, if global color is set from parent CRGBA globalColor; if (m_ModulateGlobalColor) @@ -166,9 +159,6 @@ namespace NLGUI // flush draw cache to ensure correct draw order rVR.flush(); - - if (m_Viewport) - rVR.setClipWindow(clipX, clipY, clipW, clipH); } // ----------------------------------------------------------------------------