diff options
Diffstat (limited to 'src/resources/image.cpp')
-rw-r--r-- | src/resources/image.cpp | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/resources/image.cpp b/src/resources/image.cpp index 6bb0a9faa..b1f83e258 100644 --- a/src/resources/image.cpp +++ b/src/resources/image.cpp @@ -664,16 +664,18 @@ Image *Image::_SDLload(SDL_Surface *tmpImage) { if (SDL_ALPHA_OPAQUE != 255) hasAlpha = true; - for (int i = 0; i < sz; ++ i) - alphaChannel[i] = SDL_ALPHA_OPAQUE; + memset(alphaChannel, SDL_ALPHA_OPAQUE, sz); +// for (int i = 0; i < sz; ++ i) +// alphaChannel[i] = SDL_ALPHA_OPAQUE; } } else { if (SDL_ALPHA_OPAQUE != 255) hasAlpha = true; - for (int i = 0; i < sz; ++ i) - alphaChannel[i] = SDL_ALPHA_OPAQUE; + memset(alphaChannel, SDL_ALPHA_OPAQUE, sz); +// for (int i = 0; i < sz; ++ i) +// alphaChannel[i] = SDL_ALPHA_OPAQUE; } SDL_Surface *image; |