equal
deleted
inserted
replaced
566 } |
566 } |
567 row = (Uint8 *) dst->pixels + dstrect->y * dst->pitch + |
567 row = (Uint8 *) dst->pixels + dstrect->y * dst->pitch + |
568 dstrect->x * dst->format->BytesPerPixel; |
568 dstrect->x * dst->format->BytesPerPixel; |
569 if (dst->format->palette || (color == 0)) { |
569 if (dst->format->palette || (color == 0)) { |
570 x = dstrect->w * dst->format->BytesPerPixel; |
570 x = dstrect->w * dst->format->BytesPerPixel; |
571 #ifndef __MACOSX__ /* memset() is optimized on Mac OS X */ |
571 #ifndef __MACOSX__ /* memset() is optimized on Mac OS X */ |
572 if (!color && !((uintptr_t) row & 3) && !(x & 3) |
572 if (!color && !((uintptr_t) row & 3) && !(x & 3) |
573 && !(dst->pitch & 3)) { |
573 && !(dst->pitch & 3)) { |
574 int n = x >> 2; |
574 int n = x >> 2; |
575 for (y = dstrect->h; y; --y) { |
575 for (y = dstrect->h; y; --y) { |
576 SDL_memset4(row, 0, n); |
576 SDL_memset4(row, 0, n); |