Use variables instead of macros for local variables

This commit is contained in:
Aleix Pol 2020-12-11 18:07:18 +01:00 committed by Aleix Pol Gonzalez
parent 8b461ff49f
commit 3f66aabd48

View file

@ -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);
}