src/video/SDL_blit.h
changeset 7562 5287c82340e3
parent 7502 6ff02ff3cf06
child 8093 b43765095a6f
equal deleted inserted replaced
7561:65f2b183e2aa 7562:5287c82340e3
   508         pixel_copy_increment1; n -= 1;                                  \
   508         pixel_copy_increment1; n -= 1;                                  \
   509     }                                                                   \
   509     }                                                                   \
   510     if (n & 2) {                                                        \
   510     if (n & 2) {                                                        \
   511         pixel_copy_increment2; n -= 2;                                  \
   511         pixel_copy_increment2; n -= 2;                                  \
   512     }                                                                   \
   512     }                                                                   \
       
   513     if (n & 4) {                                                        \
       
   514         pixel_copy_increment4; n -= 4;                                  \
       
   515     }                                                                   \
   513     if (n) {                                                            \
   516     if (n) {                                                            \
   514         n = (n+7)/ 8;                                                   \
   517         n /= 8;                                                         \
   515         switch (n & 4) {                                                \
   518         do {                                                            \
   516         case 0: do {    pixel_copy_increment4;                          \
   519             pixel_copy_increment4;                                      \
   517         case 4:     pixel_copy_increment4;                              \
   520             pixel_copy_increment4;                                      \
   518             } while (--n > 0);                                          \
   521         } while (--n > 0);                                              \
   519         }                                                               \
       
   520     }                                                                   \
   522     }                                                                   \
   521 }
   523 }
   522 
   524 
   523 #else
   525 #else
   524 
   526