Use variables instead of macros for local variables
This commit is contained in:
parent
8b461ff49f
commit
3f66aabd48
1 changed files with 1 additions and 2 deletions
|
@ -2063,7 +2063,7 @@ void SceneOpenGL::EffectFrame::updateUnstyledTexture()
|
||||||
delete m_unstyledPixmap;
|
delete m_unstyledPixmap;
|
||||||
m_unstyledPixmap = nullptr;
|
m_unstyledPixmap = nullptr;
|
||||||
// Based off circle() from kwinxrenderutils.cpp
|
// Based off circle() from kwinxrenderutils.cpp
|
||||||
#define CS 8
|
const int CS = 8;
|
||||||
m_unstyledPixmap = new QPixmap(2 * CS, 2 * CS);
|
m_unstyledPixmap = new QPixmap(2 * CS, 2 * CS);
|
||||||
m_unstyledPixmap->fill(Qt::transparent);
|
m_unstyledPixmap->fill(Qt::transparent);
|
||||||
QPainter p(m_unstyledPixmap);
|
QPainter p(m_unstyledPixmap);
|
||||||
|
@ -2072,7 +2072,6 @@ void SceneOpenGL::EffectFrame::updateUnstyledTexture()
|
||||||
p.setBrush(Qt::black);
|
p.setBrush(Qt::black);
|
||||||
p.drawEllipse(m_unstyledPixmap->rect());
|
p.drawEllipse(m_unstyledPixmap->rect());
|
||||||
p.end();
|
p.end();
|
||||||
#undef CS
|
|
||||||
m_unstyledTexture = new GLTexture(*m_unstyledPixmap);
|
m_unstyledTexture = new GLTexture(*m_unstyledPixmap);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue