Use variables instead of macros for local variables

remotes/origin/work/screens_crash
Aleix Pol 5 years ago committed by Aleix Pol Gonzalez
parent 8b461ff49f
commit 3f66aabd48
  1. 3
      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);
}

Loading…
Cancel
Save