Handle wParam in WM_PAINT properly: if non-null, it is the hdc we are
[wine] / dlls / ddraw / dsurface / fakezbuffer.h
1 /*
2  * Copyright 200 TransGaming Technologies Inc.
3  *
4  * This library is free software; you can redistribute it and/or
5  * modify it under the terms of the GNU Lesser General Public
6  * License as published by the Free Software Foundation; either
7  * version 2.1 of the License, or (at your option) any later version.
8  *
9  * This library is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
12  * Lesser General Public License for more details.
13  *
14  * You should have received a copy of the GNU Lesser General Public
15  * License along with this library; if not, write to the Free Software
16  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
17  */
18
19 #ifndef DDRAW_DSURFACE_FAKEZBUFFER_H_INCLUDED
20 #define DDRAW_DSURFACE_FAKEZBUFFER_H_INCLUDED
21
22 typedef struct
23 {
24     BOOLEAN in_memory;
25 } FakeZBuffer_DirectDrawSurfaceImpl;
26
27 HRESULT
28 FakeZBuffer_DirectDrawSurface_Construct(IDirectDrawSurfaceImpl* This,
29                                         IDirectDrawImpl* pDD,
30                                         const DDSURFACEDESC2* pDDSD);
31
32 HRESULT FakeZBuffer_DirectDrawSurface_Create(IDirectDrawImpl* pDD,
33                                              const DDSURFACEDESC2* pDDSD,
34                                              LPDIRECTDRAWSURFACE7* ppSurf,
35                                              IUnknown* pUnkOuter);
36
37 void
38 FakeZBuffer_DirectDrawSurface_final_release(IDirectDrawSurfaceImpl* This);
39
40 HRESULT
41 FakeZBuffer_DirectDrawSurface_duplicate_surface(IDirectDrawSurfaceImpl* This,
42                                                 LPDIRECTDRAWSURFACE7* ppDup);
43
44
45 #endif