Mercurial > sdl-ios-xcode
comparison src/video/SDL_surface.c @ 2235:55a8bebf9ba6
indent
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Sun, 12 Aug 2007 18:44:49 +0000 |
parents | cf8c3b0117b3 |
children | 31835fd24b2b |
comparison
equal
deleted
inserted
replaced
2234:cf8c3b0117b3 | 2235:55a8bebf9ba6 |
---|---|
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); |