diff --git a/plugins/scenes/opengl/scene_opengl.cpp b/plugins/scenes/opengl/scene_opengl.cpp index e1f944b1c1..cb40a7a1c4 100644 --- a/plugins/scenes/opengl/scene_opengl.cpp +++ b/plugins/scenes/opengl/scene_opengl.cpp @@ -2063,7 +2063,7 @@ void SceneOpenGL::EffectFrame::updateUnstyledTexture() delete m_unstyledPixmap; m_unstyledPixmap = nullptr; // Based off circle() from kwinxrenderutils.cpp -#define CS 8 + const int CS = 8; m_unstyledPixmap = new QPixmap(2 * CS, 2 * CS); m_unstyledPixmap->fill(Qt::transparent); QPainter p(m_unstyledPixmap); @@ -2072,7 +2072,6 @@ void SceneOpenGL::EffectFrame::updateUnstyledTexture() p.setBrush(Qt::black); p.drawEllipse(m_unstyledPixmap->rect()); p.end(); -#undef CS m_unstyledTexture = new GLTexture(*m_unstyledPixmap); }