Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Commit

Permalink
valgrind FTW!
Browse files Browse the repository at this point in the history
  • Loading branch information
slouken committed Oct 25, 2011
1 parent 61ab097 commit 95cb19c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/video/cocoa/SDL_cocoavideo.m
Expand Up @@ -193,7 +193,7 @@
SDL_FreeSurface(converted);

/* Premultiply the alpha channel */
for (i = (converted->h * converted->w); i--; ) {
for (i = (surface->h * surface->w); i--; ) {
Uint8 alpha = pixels[3];
pixels[0] = (Uint8)(((Uint16)pixels[0] * alpha) / 255);
pixels[1] = (Uint8)(((Uint16)pixels[1] * alpha) / 255);
Expand Down

0 comments on commit 95cb19c

Please sign in to comment.