diff options
author | D G Turner | 2019-11-17 10:11:25 +0000 |
---|---|---|
committer | D G Turner | 2019-11-17 10:11:25 +0000 |
commit | be56e9afed697dd580c7348e8a9467281bac3517 (patch) | |
tree | 21838ac55e5b55c495d12c03d6d0b13cc6975321 /graphics/fonts | |
parent | b46f07b823fbde7b7e0aadf1bbf583fb07377332 (diff) | |
download | scummvm-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.cpp | 5 |
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; |