summaryrefslogtreecommitdiff
path: root/src/JSystem/JUtility/JUTFader.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/JSystem/JUtility/JUTFader.cpp')
-rw-r--r--src/JSystem/JUtility/JUTFader.cpp12
1 files changed, 5 insertions, 7 deletions
diff --git a/src/JSystem/JUtility/JUTFader.cpp b/src/JSystem/JUtility/JUTFader.cpp
index 57a7e09395..35bcb09d87 100644
--- a/src/JSystem/JUtility/JUTFader.cpp
+++ b/src/JSystem/JUtility/JUTFader.cpp
@@ -51,13 +51,11 @@ void JUTFader::control() {
}
void JUTFader::draw() {
- if (mColor.a == 0) {
- return;
- }
-
- J2DOrthoGraph orthograph;
- orthograph.setColor(mColor);
- orthograph.fillBox(mBox);
+ if (mColor.a != 0) {
+ J2DOrthoGraph orthograph;
+ orthograph.setColor(mColor);
+ orthograph.fillBox(mBox);
+ }
}
bool JUTFader::startFadeIn(int param_0) {