src/video/SDL_blit.h
changeset 7562 5287c82340e3
parent 7502 6ff02ff3cf06
child 8093 b43765095a6f
--- a/src/video/SDL_blit.h	Thu Aug 01 01:50:02 2013 -0400
+++ b/src/video/SDL_blit.h	Thu Aug 01 01:29:07 2013 -0700
@@ -510,13 +510,15 @@
     if (n & 2) {                                                        \
         pixel_copy_increment2; n -= 2;                                  \
     }                                                                   \
+    if (n & 4) {                                                        \
+        pixel_copy_increment4; n -= 4;                                  \
+    }                                                                   \
     if (n) {                                                            \
-        n = (n+7)/ 8;                                                   \
-        switch (n & 4) {                                                \
-        case 0: do {    pixel_copy_increment4;                          \
-        case 4:     pixel_copy_increment4;                              \
-            } while (--n > 0);                                          \
-        }                                                               \
+        n /= 8;                                                         \
+        do {                                                            \
+            pixel_copy_increment4;                                      \
+            pixel_copy_increment4;                                      \
+        } while (--n > 0);                                              \
     }                                                                   \
 }