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

Commit

Permalink
Code cleanup.
Browse files Browse the repository at this point in the history
  • Loading branch information
sunnyps committed Jul 22, 2010
1 parent 60b6945 commit 6a3c355
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions src/video/x11/SDL_x11render.c
Expand Up @@ -1000,10 +1000,6 @@ X11_SetTextureBlendMode(SDL_Renderer * renderer, SDL_Texture * texture)
return 0;
}
case SDL_BLENDMODE_MOD:
if (renderdata->use_xrender) {
data->blend_op = PictOpOver;
return 0;
}
case SDL_BLENDMODE_MASK:
case SDL_BLENDMODE_BLEND:
if (renderdata->use_xrender) {
Expand Down Expand Up @@ -1765,15 +1761,18 @@ X11_RenderCopy(SDL_Renderer * renderer, SDL_Texture * texture,
Picture mask;
XRenderPictureAttributes attr;
const SDL_Rect *mrect;
if(texture->blendMode == SDL_BLENDMODE_NONE) {
if(texture->blendMode == SDL_BLENDMODE_NONE)
{
mask = None;
mrect = srcrect;
}
else if (texture->blendMode == SDL_BLENDMODE_MOD) {
else if (texture->blendMode == SDL_BLENDMODE_MOD)
{
mask = data->stencil_pict;
mrect = dstrect;
mrect = dstrect;
}
else {
else
{
mask = texturedata->picture;
mrect = srcrect;
}
Expand Down

0 comments on commit 6a3c355

Please sign in to comment.