[Scummvm-cvs-logs] scummvm master -> 8c2bbb09a8789b17adc4abe609571d1a0b64e535
eriktorbjorn
eriktorbjorn at telia.com
Mon Aug 19 19:38:10 CEST 2013
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .
Summary:
8c2bbb09a8 GRAPHICS: Add missing "break"s in switch, CID 1063214
Commit: 8c2bbb09a8789b17adc4abe609571d1a0b64e535
https://github.com/scummvm/scummvm/commit/8c2bbb09a8789b17adc4abe609571d1a0b64e535
Author: Torbjörn Andersson (eriktorbjorn at users.sourceforge.net)
Date: 2013-08-19T10:34:41-07:00
Commit Message:
GRAPHICS: Add missing "break"s in switch, CID 1063214
This won't actually make any difference, since the fall through
would do nothing and then reach the break in the default case. But
I think it's less error-prone this way if the code is ever modified.
Changed paths:
graphics/VectorRendererSpec.cpp
diff --git a/graphics/VectorRendererSpec.cpp b/graphics/VectorRendererSpec.cpp
index e4843ba..cb714a0 100644
--- a/graphics/VectorRendererSpec.cpp
+++ b/graphics/VectorRendererSpec.cpp
@@ -287,12 +287,14 @@ VectorRenderer *createRenderer(int mode) {
return new VectorRendererSpec<uint32>(format);
else if (g_system->getOverlayFormat().bytesPerPixel == 2)
return new VectorRendererSpec<uint16>(format);
+ break;
#ifndef DISABLE_FANCY_THEMES
case GUI::ThemeEngine::kGfxAntialias:
if (g_system->getOverlayFormat().bytesPerPixel == 4)
return new VectorRendererAA<uint32>(format);
else if (g_system->getOverlayFormat().bytesPerPixel == 2)
return new VectorRendererAA<uint16>(format);
+ break;
#endif
default:
break;
More information about the Scummvm-git-logs
mailing list