summaryrefslogtreecommitdiff
path: root/src/gui/widgets
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-09-02 21:02:34 +0300
committerAndrei Karas <akaras@inbox.ru>2013-09-02 21:02:34 +0300
commit370cb1fa897604e5d7bf9543881afad80f45f3ba (patch)
tree66ea88a44010ebeb13ec6258b37b9a93e04c909d /src/gui/widgets
parent1d843dd814f92004efbb4574be0d898d4edf6359 (diff)
downloadmv-370cb1fa897604e5d7bf9543881afad80f45f3ba.tar.gz
mv-370cb1fa897604e5d7bf9543881afad80f45f3ba.tar.bz2
mv-370cb1fa897604e5d7bf9543881afad80f45f3ba.tar.xz
mv-370cb1fa897604e5d7bf9543881afad80f45f3ba.zip
dehardcode some mode render mode constans usage.
Diffstat (limited to 'src/gui/widgets')
-rw-r--r--src/gui/widgets/button.cpp2
-rw-r--r--src/gui/widgets/popup.cpp2
-rw-r--r--src/gui/widgets/progressbar.cpp2
-rw-r--r--src/gui/widgets/scrollarea.cpp4
-rw-r--r--src/gui/widgets/shortcutcontainer.cpp2
-rw-r--r--src/gui/widgets/tab.cpp2
-rw-r--r--src/gui/widgets/window.cpp2
7 files changed, 8 insertions, 8 deletions
diff --git a/src/gui/widgets/button.cpp b/src/gui/widgets/button.cpp
index 1fb4fa5e4..37213369d 100644
--- a/src/gui/widgets/button.cpp
+++ b/src/gui/widgets/button.cpp
@@ -431,7 +431,7 @@ void Button::draw(gcn::Graphics *graphics)
}
}
- if (openGLMode != 2)
+ if (openGLMode != RENDER_SAFE_OPENGL)
{
if (recalc)
{
diff --git a/src/gui/widgets/popup.cpp b/src/gui/widgets/popup.cpp
index 438b5db29..e71e65c14 100644
--- a/src/gui/widgets/popup.cpp
+++ b/src/gui/widgets/popup.cpp
@@ -103,7 +103,7 @@ void Popup::draw(gcn::Graphics *graphics)
if (mSkin)
{
- if (openGLMode != 2)
+ if (openGLMode != RENDER_SAFE_OPENGL)
{
if (mRedraw)
{
diff --git a/src/gui/widgets/progressbar.cpp b/src/gui/widgets/progressbar.cpp
index dc1e02ac5..2c3b13354 100644
--- a/src/gui/widgets/progressbar.cpp
+++ b/src/gui/widgets/progressbar.cpp
@@ -180,7 +180,7 @@ void ProgressBar::render(Graphics *graphics)
if (!mSkin)
return;
- if (openGLMode != 2)
+ if (openGLMode != RENDER_SAFE_OPENGL)
{
if (mRedraw || graphics->getRedraw())
{
diff --git a/src/gui/widgets/scrollarea.cpp b/src/gui/widgets/scrollarea.cpp
index ec03e5cea..03466b90e 100644
--- a/src/gui/widgets/scrollarea.cpp
+++ b/src/gui/widgets/scrollarea.cpp
@@ -262,7 +262,7 @@ void ScrollArea::draw(gcn::Graphics *graphics)
BLOCK_START("ScrollArea::draw")
if (mVBarVisible || mHBarVisible)
{
- if (openGLMode != 2)
+ if (openGLMode != RENDER_SAFE_OPENGL)
{
if (!mOpaque)
updateCalcFlag(graphics);
@@ -363,7 +363,7 @@ void ScrollArea::drawFrame(gcn::Graphics *graphics)
updateCalcFlag(graphics);
- if (openGLMode != 2)
+ if (openGLMode != RENDER_SAFE_OPENGL)
{
if (mRedraw)
{
diff --git a/src/gui/widgets/shortcutcontainer.cpp b/src/gui/widgets/shortcutcontainer.cpp
index ed3c32f04..9c651fce1 100644
--- a/src/gui/widgets/shortcutcontainer.cpp
+++ b/src/gui/widgets/shortcutcontainer.cpp
@@ -93,7 +93,7 @@ void ShortcutContainer::drawBackground(Graphics *g)
{
if (mBackgroundImg)
{
- if (openGLMode != 2)
+ if (openGLMode != RENDER_SAFE_OPENGL)
{
if (mRedraw)
{
diff --git a/src/gui/widgets/tab.cpp b/src/gui/widgets/tab.cpp
index ac91442fb..f1dc59c60 100644
--- a/src/gui/widgets/tab.cpp
+++ b/src/gui/widgets/tab.cpp
@@ -221,7 +221,7 @@ void Tab::draw(gcn::Graphics *graphics)
if (skin)
{
// draw tab
- if (openGLMode != 2)
+ if (openGLMode != RENDER_SAFE_OPENGL)
{
const ImageRect &rect = skin->getBorder();
if (mRedraw || mode != mMode || g->getRedraw())
diff --git a/src/gui/widgets/window.cpp b/src/gui/widgets/window.cpp
index 7d6174311..fadd962c4 100644
--- a/src/gui/widgets/window.cpp
+++ b/src/gui/widgets/window.cpp
@@ -214,7 +214,7 @@ void Window::draw(gcn::Graphics *graphics)
Graphics *const g = static_cast<Graphics*>(graphics);
bool update = false;
- if (openGLMode != 2)
+ if (openGLMode != RENDER_SAFE_OPENGL)
{
if (mResizeHandles != mOldResizeHandles)
{