summaryrefslogtreecommitdiff
path: root/src/texteff.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/texteff.cpp')
-rw-r--r--src/texteff.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/texteff.cpp b/src/texteff.cpp
index 2c7b5d32f..692641be5 100644
--- a/src/texteff.cpp
+++ b/src/texteff.cpp
@@ -327,7 +327,7 @@ void DrawTextEffects(DrawPixelInfo *dpi)
const TextEffect* te;
switch (dpi->zoom) {
- case 0:
+ case ZOOM_LVL_NORMAL:
for (te = _text_effect_list; te != endof(_text_effect_list); te++) {
if (te->string_id != INVALID_STRING_ID &&
dpi->left <= te->right &&
@@ -339,7 +339,7 @@ void DrawTextEffects(DrawPixelInfo *dpi)
}
break;
- case 1:
+ case ZOOM_LVL_OUT_2X:
for (te = _text_effect_list; te != endof(_text_effect_list); te++) {
if (te->string_id != INVALID_STRING_ID &&
dpi->left <= te->right * 2 - te->x &&
@@ -350,6 +350,9 @@ void DrawTextEffects(DrawPixelInfo *dpi)
}
}
break;
+
+ default:
+ break;
}
}