aboutsummaryrefslogtreecommitdiff
path: root/graphics/fonts
diff options
context:
space:
mode:
authorD G Turner2019-11-17 10:11:25 +0000
committerD G Turner2019-11-17 10:11:25 +0000
commitbe56e9afed697dd580c7348e8a9467281bac3517 (patch)
tree21838ac55e5b55c495d12c03d6d0b13cc6975321 /graphics/fonts
parentb46f07b823fbde7b7e0aadf1bbf583fb07377332 (diff)
downloadscummvm-rg350-be56e9afed697dd580c7348e8a9467281bac3517.tar.gz
scummvm-rg350-be56e9afed697dd580c7348e8a9467281bac3517.tar.bz2
scummvm-rg350-be56e9afed697dd580c7348e8a9467281bac3517.zip
GRAPHICS: Fix Missing Default Switch Cases
These are flagged by GCC if -Wswitch-default is enabled.
Diffstat (limited to 'graphics/fonts')
-rw-r--r--graphics/fonts/ttf.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/graphics/fonts/ttf.cpp b/graphics/fonts/ttf.cpp
index 89f26c7727..8c75aaa831 100644
--- a/graphics/fonts/ttf.cpp
+++ b/graphics/fonts/ttf.cpp
@@ -239,6 +239,9 @@ bool TTFFont::load(Common::SeekableReadStream &stream, int size, TTFSizeMode siz
_loadFlags = FT_LOAD_TARGET_MONO;
_renderMode = FT_RENDER_MODE_MONO;
break;
+
+ default:
+ break;
}
FT_Fixed yScale = _face->size->metrics.y_scale;
@@ -298,6 +301,8 @@ int TTFFont::computePointSize(int size, TTFSizeMode sizeMode) const {
case kTTFSizeModeCharacter:
ptSize = size;
break;
+ default:
+ break;
}
return ptSize;