indent. *sigh*
authorSam Lantinga <slouken@libsdl.org>
Tue, 26 Aug 2008 02:40:24 +0000
changeset 272291f1706b27be
parent 2721 e82a0e3e9b0e
child 2723 911db724ea24
indent. *sigh*
src/video/directfb/SDL_DirectFB_render.c
src/video/directfb/SDL_DirectFB_video.c
     1.1 --- a/src/video/directfb/SDL_DirectFB_render.c	Tue Aug 26 02:32:45 2008 +0000
     1.2 +++ b/src/video/directfb/SDL_DirectFB_render.c	Tue Aug 26 02:40:24 2008 +0000
     1.3 @@ -694,29 +694,29 @@
     1.4          }
     1.5  
     1.6          switch (texture->blendMode) {
     1.7 -        case SDL_TEXTUREBLENDMODE_NONE: /**< No blending */
     1.8 +        case SDL_TEXTUREBLENDMODE_NONE:
     1.9              flags |= DSBLIT_NOFX;
    1.10              data->surface->SetSrcBlendFunction(data->surface, DSBF_ONE);
    1.11              data->surface->SetDstBlendFunction(data->surface, DSBF_ZERO);
    1.12              break;
    1.13 -        case SDL_TEXTUREBLENDMODE_MASK: /**< dst = A ? src : dst (alpha is mask) */
    1.14 +        case SDL_TEXTUREBLENDMODE_MASK:
    1.15              flags |= DSBLIT_BLEND_ALPHACHANNEL;
    1.16              data->surface->SetSrcBlendFunction(data->surface, DSBF_SRCALPHA);
    1.17              data->surface->SetDstBlendFunction(data->surface,
    1.18                                                 DSBF_INVSRCALPHA);
    1.19              break;
    1.20 -        case SDL_TEXTUREBLENDMODE_BLEND:/**< dst = (src * A) + (dst * (1-A)) */
    1.21 +        case SDL_TEXTUREBLENDMODE_BLEND:
    1.22              flags |= DSBLIT_BLEND_ALPHACHANNEL;
    1.23              data->surface->SetSrcBlendFunction(data->surface, DSBF_SRCALPHA);
    1.24              data->surface->SetDstBlendFunction(data->surface,
    1.25                                                 DSBF_INVSRCALPHA);
    1.26              break;
    1.27 -        case SDL_TEXTUREBLENDMODE_ADD:  /**< dst = (src * A) + dst */
    1.28 +        case SDL_TEXTUREBLENDMODE_ADD:
    1.29              flags |= DSBLIT_BLEND_ALPHACHANNEL;
    1.30              data->surface->SetSrcBlendFunction(data->surface, DSBF_SRCALPHA);
    1.31              data->surface->SetDstBlendFunction(data->surface, DSBF_ONE);
    1.32              break;
    1.33 -        case SDL_TEXTUREBLENDMODE_MOD:  /**< dst = src * dst */
    1.34 +        case SDL_TEXTUREBLENDMODE_MOD:
    1.35              flags |= DSBLIT_BLEND_ALPHACHANNEL;
    1.36              data->surface->SetSrcBlendFunction(data->surface, DSBF_DESTCOLOR);
    1.37              data->surface->SetDstBlendFunction(data->surface, DSBF_ZERO);
     2.1 --- a/src/video/directfb/SDL_DirectFB_video.c	Tue Aug 26 02:32:45 2008 +0000
     2.2 +++ b/src/video/directfb/SDL_DirectFB_video.c	Tue Aug 26 02:40:24 2008 +0000
     2.3 @@ -700,10 +700,8 @@
     2.4          y = 0;
     2.5      }
     2.6  
     2.7 -    desc.flags =
     2.8 -        DWDESC_WIDTH | DWDESC_HEIGHT /*| DWDESC_CAPS */  | DWDESC_PIXELFORMAT
     2.9 -        |
    2.10 -        DWDESC_SURFACE_CAPS;
    2.11 +    desc.flags = DWDESC_WIDTH | DWDESC_HEIGHT /*| DWDESC_CAPS */  | DWDESC_PIXELFORMAT
    2.12 +        | DWDESC_SURFACE_CAPS;
    2.13  
    2.14  #if (DIRECTFB_MAJOR_VERSION == 1) && (DIRECTFB_MINOR_VERSION >= 0)
    2.15      /* Needed for 1.2 */