Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
515ee4e8
Commit
515ee4e8
authored
Sep 17, 2007
by
Stefan Dösinger
Committed by
Alexandre Julliard
Sep 18, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Clean up IWineD3DSurface::ReleaseDC.
parent
511f9dfb
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
2 deletions
+22
-2
surface_gdi.c
dlls/wined3d/surface_gdi.c
+22
-1
wined3d_private.h
dlls/wined3d/wined3d_private.h
+0
-1
No files found.
dlls/wined3d/surface_gdi.c
View file @
515ee4e8
...
...
@@ -1490,6 +1490,27 @@ const char* filename)
return
WINED3D_OK
;
}
HRESULT
WINAPI
IWineGDISurfaceImpl_ReleaseDC
(
IWineD3DSurface
*
iface
,
HDC
hDC
)
{
IWineD3DSurfaceImpl
*
This
=
(
IWineD3DSurfaceImpl
*
)
iface
;
TRACE
(
"(%p)->(%p)
\n
"
,
This
,
hDC
);
if
(
!
(
This
->
Flags
&
SFLAG_DCINUSE
))
return
WINED3DERR_INVALIDCALL
;
if
(
This
->
hDC
!=
hDC
)
{
WARN
(
"Application tries to release an invalid DC(%p), surface dc is %p
\n
"
,
hDC
,
This
->
hDC
);
return
WINED3DERR_INVALIDCALL
;
}
/* we locked first, so unlock now */
IWineD3DSurface_UnlockRect
(
iface
);
This
->
Flags
&=
~
SFLAG_DCINUSE
;
return
WINED3D_OK
;
}
/*****************************************************************************
* IWineD3DSurface::PrivateSetup, GDI version
*
...
...
@@ -1641,7 +1662,7 @@ const IWineD3DSurfaceVtbl IWineGDISurface_Vtbl =
IWineGDISurfaceImpl_LockRect
,
IWineGDISurfaceImpl_UnlockRect
,
IWineD3DSurfaceImpl_GetDC
,
IWine
D3D
SurfaceImpl_ReleaseDC
,
IWine
GDI
SurfaceImpl_ReleaseDC
,
IWineGDISurfaceImpl_Flip
,
IWineGDISurfaceImpl_Blt
,
IWineD3DBaseSurfaceImpl_GetBltStatus
,
...
...
dlls/wined3d/wined3d_private.h
View file @
515ee4e8
...
...
@@ -1174,7 +1174,6 @@ ULONG WINAPI IWineD3DSurfaceImpl_Release(IWineD3DSurface *iface);
HRESULT
WINAPI
IWineD3DSurfaceImpl_SetPixelFormat
(
IWineD3DSurface
*
iface
,
WINED3DFORMAT
Format
,
BYTE
*
Surface
,
DWORD
Size
);
const
void
*
WINAPI
IWineD3DSurfaceImpl_GetData
(
IWineD3DSurface
*
iface
);
HRESULT
WINAPI
IWineD3DSurfaceImpl_GetDC
(
IWineD3DSurface
*
iface
,
HDC
*
pHDC
);
HRESULT
WINAPI
IWineD3DSurfaceImpl_ReleaseDC
(
IWineD3DSurface
*
iface
,
HDC
hDC
);
HRESULT
WINAPI
IWineGDISurfaceImpl_Blt
(
IWineD3DSurface
*
iface
,
RECT
*
DestRect
,
IWineD3DSurface
*
SrcSurface
,
RECT
*
SrcRect
,
DWORD
Flags
,
WINEDDBLTFX
*
DDBltFx
,
WINED3DTEXTUREFILTERTYPE
Filter
);
HRESULT
WINAPI
IWineGDISurfaceImpl_BltFast
(
IWineD3DSurface
*
iface
,
DWORD
dstx
,
DWORD
dsty
,
IWineD3DSurface
*
Source
,
RECT
*
rsrc
,
DWORD
trans
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment