aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohannes Schickel2008-09-20 13:04:50 +0000
committerJohannes Schickel2008-09-20 13:04:50 +0000
commit0d4ce96799da99a3f0c7c25ef14aac8951b93239 (patch)
treec04e81ec3d3d81c7a1732313387e13969f1e024d
parent2c775d851b3d162b9f00dcb9c9f82d8faeaff74a (diff)
downloadscummvm-rg350-0d4ce96799da99a3f0c7c25ef14aac8951b93239.tar.gz
scummvm-rg350-0d4ce96799da99a3f0c7c25ef14aac8951b93239.tar.bz2
scummvm-rg350-0d4ce96799da99a3f0c7c25ef14aac8951b93239.zip
Fixed warnings.
svn-id: r34609
-rw-r--r--graphics/VectorRendererSpec.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/graphics/VectorRendererSpec.cpp b/graphics/VectorRendererSpec.cpp
index 375dfca20a..f8c2d14521 100644
--- a/graphics/VectorRendererSpec.cpp
+++ b/graphics/VectorRendererSpec.cpp
@@ -382,14 +382,14 @@ applyScreenShading(GUI::Theme::ShadingStyle shadingStyle) {
int n = (pixels + 7) >> 3;
switch (pixels % 8) {
case 0: do {
- *ptr++ = (*ptr >> 1) & shiftMask;
- case 7: *ptr++ = (*ptr >> 1) & shiftMask;
- case 6: *ptr++ = (*ptr >> 1) & shiftMask;
- case 5: *ptr++ = (*ptr >> 1) & shiftMask;
- case 4: *ptr++ = (*ptr >> 1) & shiftMask;
- case 3: *ptr++ = (*ptr >> 1) & shiftMask;
- case 2: *ptr++ = (*ptr >> 1) & shiftMask;
- case 1: *ptr++ = (*ptr >> 1) & shiftMask;
+ *ptr = (*ptr >> 1) & shiftMask; ++ptr;
+ case 7: *ptr = (*ptr >> 1) & shiftMask; ++ptr;
+ case 6: *ptr = (*ptr >> 1) & shiftMask; ++ptr;
+ case 5: *ptr = (*ptr >> 1) & shiftMask; ++ptr;
+ case 4: *ptr = (*ptr >> 1) & shiftMask; ++ptr;
+ case 3: *ptr = (*ptr >> 1) & shiftMask; ++ptr;
+ case 2: *ptr = (*ptr >> 1) & shiftMask; ++ptr;
+ case 1: *ptr = (*ptr >> 1) & shiftMask; ++ptr;
} while (--n > 0);
}