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
3f61afbb
Commit
3f61afbb
authored
Nov 14, 2002
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added ReleaseDC function to the USER driver interface.
parent
0446f546
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
23 additions
and
2 deletions
+23
-2
user_main.c
dlls/user/user_main.c
+1
-0
winpos.c
dlls/x11drv/winpos.c
+11
-0
x11drv.spec
dlls/x11drv/x11drv.spec
+1
-0
user.h
include/user.h
+1
-0
dce.c
windows/dce.c
+8
-1
win.c
windows/win.c
+1
-1
No files found.
dlls/user/user_main.c
View file @
3f61afbb
...
...
@@ -105,6 +105,7 @@ static BOOL load_driver(void)
GET_USER_FUNC
(
GetDC
);
GET_USER_FUNC
(
ForceWindowRaise
);
GET_USER_FUNC
(
MsgWaitForMultipleObjectsEx
);
GET_USER_FUNC
(
ReleaseDC
);
GET_USER_FUNC
(
ScrollDC
);
GET_USER_FUNC
(
ScrollWindowEx
);
GET_USER_FUNC
(
SetFocus
);
...
...
dlls/x11drv/winpos.c
View file @
3f61afbb
...
...
@@ -531,6 +531,17 @@ BOOL X11DRV_GetDC( HWND hwnd, HDC hdc, HRGN hrgn, DWORD flags )
}
/***********************************************************************
* ReleaseDC (X11DRV.@)
*/
void
X11DRV_ReleaseDC
(
HWND
hwnd
,
HDC
hdc
)
{
POINT
org
;
org
.
x
=
org
.
y
=
0
;
X11DRV_SetDrawable
(
hdc
,
root_window
,
IncludeInferiors
,
&
org
,
&
org
);
}
/***********************************************************************
* SWP_DoWinPosChanging
...
...
dlls/x11drv/x11drv.spec
View file @
3f61afbb
...
...
@@ -77,6 +77,7 @@
@ cdecl GetDC(long long long long) X11DRV_GetDC
@ cdecl ForceWindowRaise(long) X11DRV_ForceWindowRaise
@ cdecl MsgWaitForMultipleObjectsEx(long ptr long long long) X11DRV_MsgWaitForMultipleObjectsEx
@ cdecl ReleaseDC(long long) X11DRV_ReleaseDC
@ cdecl ScrollDC(long long long ptr ptr long ptr) X11DRV_ScrollDC
@ cdecl ScrollWindowEx(long long long ptr ptr long ptr long) X11DRV_ScrollWindowEx
@ cdecl SetFocus(long) X11DRV_SetFocus
...
...
include/user.h
View file @
3f61afbb
...
...
@@ -98,6 +98,7 @@ typedef struct tagUSER_DRIVER {
BOOL
(
*
pGetDC
)(
HWND
,
HDC
,
HRGN
,
DWORD
);
void
(
*
pForceWindowRaise
)(
HWND
);
DWORD
(
*
pMsgWaitForMultipleObjectsEx
)(
DWORD
,
const
HANDLE
*
,
DWORD
,
DWORD
,
DWORD
);
void
(
*
pReleaseDC
)(
HWND
,
HDC
);
BOOL
(
*
pScrollDC
)(
HDC
,
INT
,
INT
,
const
RECT
*
,
const
RECT
*
,
HRGN
,
LPRECT
);
INT
(
*
pScrollWindowEx
)(
HWND
,
INT
,
INT
,
const
RECT
*
,
const
RECT
*
,
HRGN
,
LPRECT
,
UINT
);
void
(
*
pSetFocus
)(
HWND
);
...
...
windows/dce.c
View file @
3f61afbb
...
...
@@ -172,6 +172,8 @@ void DCE_FreeWindowDCE( HWND hwnd )
}
else
if
(
pDCE
->
DCXflags
&
(
DCX_INTERSECTRGN
|
DCX_EXCLUDERGN
)
)
/* Class DCE*/
{
if
(
USER_Driver
.
pReleaseDC
)
USER_Driver
.
pReleaseDC
(
pDCE
->
hwndCurrent
,
pDCE
->
hDC
);
DCE_DeleteClipRgn
(
pDCE
);
pDCE
->
hwndCurrent
=
0
;
}
...
...
@@ -191,6 +193,8 @@ void DCE_FreeWindowDCE( HWND hwnd )
DCE_ReleaseDC
(
pDCE
);
}
if
(
pDCE
->
hwndCurrent
&&
USER_Driver
.
pReleaseDC
)
USER_Driver
.
pReleaseDC
(
pDCE
->
hwndCurrent
,
pDCE
->
hDC
);
pDCE
->
DCXflags
&=
DCX_CACHE
;
pDCE
->
DCXflags
|=
DCX_DCEEMPTY
;
pDCE
->
hwndCurrent
=
0
;
...
...
@@ -247,7 +251,8 @@ static INT DCE_ReleaseDC( DCE* dce )
/* don't keep around invalidated entries
* because SetDCState() disables hVisRgn updates
* by removing dirty bit. */
if
(
dce
->
hwndCurrent
&&
USER_Driver
.
pReleaseDC
)
USER_Driver
.
pReleaseDC
(
dce
->
hwndCurrent
,
dce
->
hDC
);
dce
->
hwndCurrent
=
0
;
dce
->
DCXflags
&=
DCX_CACHE
;
dce
->
DCXflags
|=
DCX_DCEEMPTY
;
...
...
@@ -306,6 +311,8 @@ BOOL DCE_InvalidateDCE(HWND hwnd, const RECT* pRectUpdate)
/* Don't bother with visible regions of unused DCEs */
TRACE
(
"
\t
purged %p dce [%04x]
\n
"
,
dce
,
dce
->
hwndCurrent
);
if
(
dce
->
hwndCurrent
&&
USER_Driver
.
pReleaseDC
)
USER_Driver
.
pReleaseDC
(
dce
->
hwndCurrent
,
dce
->
hDC
);
dce
->
hwndCurrent
=
0
;
dce
->
DCXflags
&=
DCX_CACHE
;
dce
->
DCXflags
|=
DCX_DCEEMPTY
;
...
...
windows/win.c
View file @
3f61afbb
...
...
@@ -694,8 +694,8 @@ LRESULT WIN_DestroyWindow( HWND hwnd )
DestroyMenu
(
wndPtr
->
hSysMenu
);
wndPtr
->
hSysMenu
=
0
;
}
USER_Driver
.
pDestroyWindow
(
hwnd
);
DCE_FreeWindowDCE
(
hwnd
);
/* Always do this to catch orphaned DCs */
USER_Driver
.
pDestroyWindow
(
hwnd
);
WINPROC_FreeProc
(
wndPtr
->
winproc
,
WIN_PROC_WINDOW
);
CLASS_RemoveWindow
(
wndPtr
->
class
);
wndPtr
->
class
=
NULL
;
...
...
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