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

indent. *sigh*

  • Loading branch information
slouken committed Aug 26, 2008
1 parent 10bc0b0 commit dc5bfa58fcb233407ab77e4d1ef5ba027a1ec9d8
Showing with 7 additions and 9 deletions.
  1. +5 −5 src/video/directfb/SDL_DirectFB_render.c
  2. +2 −4 src/video/directfb/SDL_DirectFB_video.c
@@ -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);
@@ -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 */

0 comments on commit dc5bfa5

Please sign in to comment.