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

Commit

Permalink
indent. *sigh*
Browse files Browse the repository at this point in the history
  • Loading branch information
slouken committed Aug 26, 2008
1 parent 10bc0b0 commit dc5bfa5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 9 deletions.
10 changes: 5 additions & 5 deletions src/video/directfb/SDL_DirectFB_render.c
Expand Up @@ -694,29 +694,29 @@ DirectFB_RenderCopy(SDL_Renderer * renderer, SDL_Texture * texture,
}

switch (texture->blendMode) {
case SDL_TEXTUREBLENDMODE_NONE: /**< No blending */
case SDL_TEXTUREBLENDMODE_NONE:
flags |= DSBLIT_NOFX;
data->surface->SetSrcBlendFunction(data->surface, DSBF_ONE);
data->surface->SetDstBlendFunction(data->surface, DSBF_ZERO);
break;
case SDL_TEXTUREBLENDMODE_MASK: /**< dst = A ? src : dst (alpha is mask) */
case SDL_TEXTUREBLENDMODE_MASK:
flags |= DSBLIT_BLEND_ALPHACHANNEL;
data->surface->SetSrcBlendFunction(data->surface, DSBF_SRCALPHA);
data->surface->SetDstBlendFunction(data->surface,
DSBF_INVSRCALPHA);
break;
case SDL_TEXTUREBLENDMODE_BLEND:/**< dst = (src * A) + (dst * (1-A)) */
case SDL_TEXTUREBLENDMODE_BLEND:
flags |= DSBLIT_BLEND_ALPHACHANNEL;
data->surface->SetSrcBlendFunction(data->surface, DSBF_SRCALPHA);
data->surface->SetDstBlendFunction(data->surface,
DSBF_INVSRCALPHA);
break;
case SDL_TEXTUREBLENDMODE_ADD: /**< dst = (src * A) + dst */
case SDL_TEXTUREBLENDMODE_ADD:
flags |= DSBLIT_BLEND_ALPHACHANNEL;
data->surface->SetSrcBlendFunction(data->surface, DSBF_SRCALPHA);
data->surface->SetDstBlendFunction(data->surface, DSBF_ONE);
break;
case SDL_TEXTUREBLENDMODE_MOD: /**< dst = src * dst */
case SDL_TEXTUREBLENDMODE_MOD:
flags |= DSBLIT_BLEND_ALPHACHANNEL;
data->surface->SetSrcBlendFunction(data->surface, DSBF_DESTCOLOR);
data->surface->SetDstBlendFunction(data->surface, DSBF_ZERO);
Expand Down
6 changes: 2 additions & 4 deletions src/video/directfb/SDL_DirectFB_video.c
Expand Up @@ -700,10 +700,8 @@ DirectFB_CreateWindow(_THIS, SDL_Window * window)
y = 0;
}

desc.flags =
DWDESC_WIDTH | DWDESC_HEIGHT /*| DWDESC_CAPS */ | DWDESC_PIXELFORMAT
|
DWDESC_SURFACE_CAPS;
desc.flags = DWDESC_WIDTH | DWDESC_HEIGHT /*| DWDESC_CAPS */ | DWDESC_PIXELFORMAT
| DWDESC_SURFACE_CAPS;

#if (DIRECTFB_MAJOR_VERSION == 1) && (DIRECTFB_MINOR_VERSION >= 0)
/* Needed for 1.2 */
Expand Down

0 comments on commit dc5bfa5

Please sign in to comment.