comparison src/video/SDL_renderer_gl.c @ 2236:741afd8402cf

This is byte order dependent.
author Sam Lantinga <slouken@libsdl.org>
date Sun, 12 Aug 2007 18:53:51 +0000
parents fb01ee9716bc
children e57a883ffa86
comparison
equal deleted inserted replaced
2235:55a8bebf9ba6 2236:741afd8402cf
808 808
809 #ifdef __MACOSX__ 809 #ifdef __MACOSX__
810 if (texture->format == SDL_PIXELFORMAT_RGB888) { 810 if (texture->format == SDL_PIXELFORMAT_RGB888) {
811 int i; 811 int i;
812 Uint8 *p = (Uint8 *) texturedata->pixels; 812 Uint8 *p = (Uint8 *) texturedata->pixels;
813 #if SDL_BYTEORDER == SDL_LIL_ENDIAN
813 p += 3; 814 p += 3;
815 #endif
814 for (i = texture->h * pitch / 4; i--;) { 816 for (i = texture->h * pitch / 4; i--;) {
815 *p = 0xff; 817 *p = 0xff;
816 p += 4; 818 p += 4;
817 } 819 }
818 } 820 }