ddraw: Remove trailing spaces.
This commit is contained in:
parent
ab8523931a
commit
ee60e5fd71
|
@ -1886,8 +1886,9 @@ IDirectDrawImpl_CreateNewSurface(IDirectDrawImpl *This,
|
|||
}
|
||||
else
|
||||
{
|
||||
if((pDDSD->ddsCaps.dwCaps & DDSCAPS_3DDEVICE ) &&
|
||||
(This->ImplType != SURFACE_OPENGL ) && DefaultSurfaceType == SURFACE_UNKNOWN)
|
||||
if ((pDDSD->ddsCaps.dwCaps & DDSCAPS_3DDEVICE)
|
||||
&& (This->ImplType != SURFACE_OPENGL)
|
||||
&& DefaultSurfaceType == SURFACE_UNKNOWN)
|
||||
{
|
||||
/* We have to change to OpenGL,
|
||||
* and re-create all WineD3DSurfaces
|
||||
|
|
|
@ -117,8 +117,7 @@ IParentImpl_AddRef(IParent *iface)
|
|||
* The new refcount
|
||||
*
|
||||
*****************************************************************************/
|
||||
static ULONG WINAPI
|
||||
IParentImpl_Release(IParent *iface)
|
||||
static ULONG WINAPI IParentImpl_Release(IParent *iface)
|
||||
{
|
||||
IParentImpl *This = (IParentImpl *)iface;
|
||||
ULONG ref = InterlockedDecrement(&This->ref);
|
||||
|
|
|
@ -920,9 +920,6 @@ IDirectDrawSurfaceImpl_AddAttachedSurface(IDirectDrawSurfaceImpl *This,
|
|||
IDirect3DDeviceImpl_UpdateDepthStencil(This->ddraw->d3ddevice);
|
||||
}
|
||||
|
||||
/* MSDN:
|
||||
* "This method increments the reference count of the surface being attached."
|
||||
*/
|
||||
IDirectDrawSurface7_AddRef((IDirectDrawSurface7 *)Surf);
|
||||
LeaveCriticalSection(&ddraw_cs);
|
||||
return DD_OK;
|
||||
|
|
|
@ -63,7 +63,6 @@ static void createwindow(void)
|
|||
ShowWindow(hwnd, SW_HIDE);
|
||||
UpdateWindow(hwnd);
|
||||
SetFocus(hwnd);
|
||||
|
||||
}
|
||||
|
||||
static BOOL createdirectdraw(void)
|
||||
|
|
|
@ -657,11 +657,8 @@ IDirect3DViewportImpl_GetBackgroundDepth(IDirect3DViewport3 *iface,
|
|||
* The return value of IDirect3DDevice7::Clear
|
||||
*
|
||||
*****************************************************************************/
|
||||
static HRESULT WINAPI
|
||||
IDirect3DViewportImpl_Clear(IDirect3DViewport3 *iface,
|
||||
DWORD dwCount,
|
||||
D3DRECT *lpRects,
|
||||
DWORD dwFlags)
|
||||
static HRESULT WINAPI IDirect3DViewportImpl_Clear(IDirect3DViewport3 *iface,
|
||||
DWORD dwCount, D3DRECT *lpRects, DWORD dwFlags)
|
||||
{
|
||||
IDirect3DViewportImpl *This = (IDirect3DViewportImpl *)iface;
|
||||
DWORD color = 0x00000000;
|
||||
|
@ -680,12 +677,13 @@ IDirect3DViewportImpl_Clear(IDirect3DViewport3 *iface,
|
|||
if (dwFlags & D3DCLEAR_TARGET) {
|
||||
if (This->background == NULL) {
|
||||
ERR(" Trying to clear the color buffer without background material !\n");
|
||||
} else {
|
||||
color =
|
||||
((int) ((This->background->mat.u.diffuse.u1.r) * 255) << 16) |
|
||||
((int) ((This->background->mat.u.diffuse.u2.g) * 255) << 8) |
|
||||
((int) ((This->background->mat.u.diffuse.u3.b) * 255) << 0) |
|
||||
((int) ((This->background->mat.u.diffuse.u4.a) * 255) << 24);
|
||||
}
|
||||
else
|
||||
{
|
||||
color = ((int)((This->background->mat.u.diffuse.u1.r) * 255) << 16)
|
||||
| ((int) ((This->background->mat.u.diffuse.u2.g) * 255) << 8)
|
||||
| ((int) ((This->background->mat.u.diffuse.u3.b) * 255) << 0)
|
||||
| ((int) ((This->background->mat.u.diffuse.u4.a) * 255) << 24);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue