Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

valgrind FTW!

  • Loading branch information
slouken committed Oct 25, 2011
1 parent 61ab097 commit 95cb19c96256b4b33b7120270d98876690877b5b
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/video/cocoa/SDL_cocoavideo.m
@@ -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);

0 comments on commit 95cb19c

Please sign in to comment.