Commit 4dd96455 authored by Sam Lantinga's avatar Sam Lantinga

indent. *sigh*

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403173
parent 1127f319
...@@ -694,29 +694,29 @@ DirectFB_RenderCopy(SDL_Renderer * renderer, SDL_Texture * texture, ...@@ -694,29 +694,29 @@ DirectFB_RenderCopy(SDL_Renderer * renderer, SDL_Texture * texture,
} }
switch (texture->blendMode) { switch (texture->blendMode) {
case SDL_TEXTUREBLENDMODE_NONE: /**< No blending */ case SDL_TEXTUREBLENDMODE_NONE:
flags |= DSBLIT_NOFX; flags |= DSBLIT_NOFX;
data->surface->SetSrcBlendFunction(data->surface, DSBF_ONE); data->surface->SetSrcBlendFunction(data->surface, DSBF_ONE);
data->surface->SetDstBlendFunction(data->surface, DSBF_ZERO); data->surface->SetDstBlendFunction(data->surface, DSBF_ZERO);
break; break;
case SDL_TEXTUREBLENDMODE_MASK: /**< dst = A ? src : dst (alpha is mask) */ case SDL_TEXTUREBLENDMODE_MASK:
flags |= DSBLIT_BLEND_ALPHACHANNEL; flags |= DSBLIT_BLEND_ALPHACHANNEL;
data->surface->SetSrcBlendFunction(data->surface, DSBF_SRCALPHA); data->surface->SetSrcBlendFunction(data->surface, DSBF_SRCALPHA);
data->surface->SetDstBlendFunction(data->surface, data->surface->SetDstBlendFunction(data->surface,
DSBF_INVSRCALPHA); DSBF_INVSRCALPHA);
break; break;
case SDL_TEXTUREBLENDMODE_BLEND:/**< dst = (src * A) + (dst * (1-A)) */ case SDL_TEXTUREBLENDMODE_BLEND:
flags |= DSBLIT_BLEND_ALPHACHANNEL; flags |= DSBLIT_BLEND_ALPHACHANNEL;
data->surface->SetSrcBlendFunction(data->surface, DSBF_SRCALPHA); data->surface->SetSrcBlendFunction(data->surface, DSBF_SRCALPHA);
data->surface->SetDstBlendFunction(data->surface, data->surface->SetDstBlendFunction(data->surface,
DSBF_INVSRCALPHA); DSBF_INVSRCALPHA);
break; break;
case SDL_TEXTUREBLENDMODE_ADD: /**< dst = (src * A) + dst */ case SDL_TEXTUREBLENDMODE_ADD:
flags |= DSBLIT_BLEND_ALPHACHANNEL; flags |= DSBLIT_BLEND_ALPHACHANNEL;
data->surface->SetSrcBlendFunction(data->surface, DSBF_SRCALPHA); data->surface->SetSrcBlendFunction(data->surface, DSBF_SRCALPHA);
data->surface->SetDstBlendFunction(data->surface, DSBF_ONE); data->surface->SetDstBlendFunction(data->surface, DSBF_ONE);
break; break;
case SDL_TEXTUREBLENDMODE_MOD: /**< dst = src * dst */ case SDL_TEXTUREBLENDMODE_MOD:
flags |= DSBLIT_BLEND_ALPHACHANNEL; flags |= DSBLIT_BLEND_ALPHACHANNEL;
data->surface->SetSrcBlendFunction(data->surface, DSBF_DESTCOLOR); data->surface->SetSrcBlendFunction(data->surface, DSBF_DESTCOLOR);
data->surface->SetDstBlendFunction(data->surface, DSBF_ZERO); data->surface->SetDstBlendFunction(data->surface, DSBF_ZERO);
......
...@@ -700,10 +700,8 @@ DirectFB_CreateWindow(_THIS, SDL_Window * window) ...@@ -700,10 +700,8 @@ DirectFB_CreateWindow(_THIS, SDL_Window * window)
y = 0; y = 0;
} }
desc.flags = desc.flags = DWDESC_WIDTH | DWDESC_HEIGHT /*| DWDESC_CAPS */ | DWDESC_PIXELFORMAT
DWDESC_WIDTH | DWDESC_HEIGHT /*| DWDESC_CAPS */ | DWDESC_PIXELFORMAT | DWDESC_SURFACE_CAPS;
|
DWDESC_SURFACE_CAPS;
#if (DIRECTFB_MAJOR_VERSION == 1) && (DIRECTFB_MINOR_VERSION >= 0) #if (DIRECTFB_MAJOR_VERSION == 1) && (DIRECTFB_MINOR_VERSION >= 0)
/* Needed for 1.2 */ /* Needed for 1.2 */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment