mirror of
git://source.winehq.org/git/wine.git
synced 2024-11-05 18:01:34 +00:00
gdi32: DC_GetDCPtr and DC_ReleaseDCPtr are not longer used.
This commit is contained in:
parent
1e3c47eae9
commit
7fdb61bd7e
2 changed files with 0 additions and 37 deletions
|
@ -155,40 +155,6 @@ DC *alloc_dc_ptr( const DC_FUNCTIONS *funcs, WORD magic )
|
|||
|
||||
|
||||
|
||||
/***********************************************************************
|
||||
* DC_GetDCPtr
|
||||
*/
|
||||
DC *DC_GetDCPtr( HDC hdc )
|
||||
{
|
||||
DC *dc = get_dc_obj( hdc );
|
||||
if (!dc) return NULL;
|
||||
|
||||
if (!InterlockedCompareExchange( &dc->refcount, 1, 0 ))
|
||||
{
|
||||
dc->thread = GetCurrentThreadId();
|
||||
}
|
||||
else if (dc->thread != GetCurrentThreadId())
|
||||
{
|
||||
GDI_ReleaseObj( hdc );
|
||||
SetLastError( ERROR_ACCESS_DENIED );
|
||||
return NULL;
|
||||
}
|
||||
else InterlockedIncrement( &dc->refcount );
|
||||
|
||||
return dc;
|
||||
}
|
||||
|
||||
|
||||
/***********************************************************************
|
||||
* DC_ReleaseDCPtr
|
||||
*/
|
||||
void DC_ReleaseDCPtr( DC *dc )
|
||||
{
|
||||
release_dc_ptr( dc );
|
||||
GDI_ReleaseObj( dc->hSelf );
|
||||
}
|
||||
|
||||
|
||||
/***********************************************************************
|
||||
* free_dc_ptr
|
||||
*/
|
||||
|
|
|
@ -397,9 +397,6 @@ extern void CLIPPING_UpdateGCRegion( DC * dc ) DECLSPEC_HIDDEN;
|
|||
|
||||
/* dc.c */
|
||||
extern DC *alloc_dc_ptr( const DC_FUNCTIONS *funcs, WORD magic ) DECLSPEC_HIDDEN;
|
||||
extern DC * DC_GetDCUpdate( HDC hdc ) DECLSPEC_HIDDEN;
|
||||
extern DC * DC_GetDCPtr( HDC hdc ) DECLSPEC_HIDDEN;
|
||||
extern void DC_ReleaseDCPtr( DC *dc ) DECLSPEC_HIDDEN;
|
||||
extern BOOL free_dc_ptr( DC *dc ) DECLSPEC_HIDDEN;
|
||||
extern DC *get_dc_ptr( HDC hdc ) DECLSPEC_HIDDEN;
|
||||
extern void release_dc_ptr( DC *dc ) DECLSPEC_HIDDEN;
|
||||
|
|
Loading…
Reference in a new issue