   Unable to set Alpha in SDL
  I am trying to create a class with an SDL_Surface (ptrImage) as a private variable and then Blit the image to the display.However when I use the code below, there isn't any blending of the image on to the background.  The background is just a screen filled with SDL_FillRect.No error is reported so SDL_SetAlpha is returning 0.  I can not see what is different in this code versus what I have written before and what examples I can find.  void ImageSurface::ApplyImage(SDL_Surface * displaySurface){if (SDL_SetAlpha(ptrImage,SDL_RLEACCEL|SDL_SRCALPHA,(Uint8)128) != 0){fprintf (stderr,"Unable to ALPHA surface; %s\n",SDL_GetError());}SDL_Rect l_pos;l_pos.x = 30;l_pos.y = 30;if (SDL_BlitSurface(ptrImage,NULL,displaySurface,&l_pos) == -1 ){fprintf (stderr,"Unable to apply surface; %s\n",SDL_GetError());}}Thoughts comments questions?   
  Try changing this:SDL_SetAlpha(ptrImage,SDL_RLEACCEL|SDL_SRCALPHA,(Uint8)128)to this:SDL_SetAlpha(ptrImage,SDL_RLEACCEL|SDL_SRCALPHA,255)   ;  Well now I feel foolish. :)It was blending just fine.  But with the solid background it was not noticeable till very low values for alpha.  Once I had some more detail in the background i could see the difference.So it was working all the time...I just could not see it.   