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
d7b4d60c
Commit
d7b4d60c
authored
Jan 12, 2005
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use the exported functions SaveDC/RestoreDC instead of SetDCState16.
parent
ed12a3de
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
8 deletions
+6
-8
gdi32.spec
dlls/gdi/gdi32.spec
+0
-2
dce.c
windows/dce.c
+6
-6
No files found.
dlls/gdi/gdi32.spec
View file @
d7b4d60c
...
...
@@ -425,11 +425,9 @@
@ stdcall DeleteMetaFile16(long)
@ stdcall DrvGetPrinterData16(str str ptr ptr long ptr)
@ stdcall DrvSetPrinterData16(str str long ptr long)
@ stdcall GetDCState16(long)
@ stdcall OpenJob16(str str long)
@ stdcall SelectVisRgn16(long long)
@ stdcall SetDCHook(long ptr long)
@ stdcall SetDCState16(long long)
@ stdcall SetHookFlags16(long long)
@ stdcall WriteSpool16(long ptr long)
...
...
windows/dce.c
View file @
d7b4d60c
...
...
@@ -44,7 +44,6 @@
WINE_DEFAULT_DEBUG_CHANNEL
(
dc
);
static
DCE
*
firstDCE
;
static
HDC16
defaultDCstate
;
static
void
DCE_DeleteClipRgn
(
DCE
*
);
static
INT
DCE_ReleaseDC
(
DCE
*
);
...
...
@@ -91,13 +90,13 @@ DCE *DCE_AllocDCE( HWND hWnd, DCE_TYPE type )
HeapFree
(
GetProcessHeap
(),
0
,
dce
);
return
0
;
}
if
(
!
defaultDCstate
)
defaultDCstate
=
GetDCState16
(
HDC_16
(
dce
->
hDC
)
);
SaveDC
(
dce
->
hDC
);
/* store DCE handle in DC hook data field */
SetDCHook
(
dce
->
hDC
,
DCHook16
,
(
DWORD
)
dce
);
dce
->
hwndCurrent
=
WIN_GetFullHandle
(
hWnd
)
;
dce
->
hwndCurrent
=
hWnd
;
dce
->
hClipRgn
=
0
;
if
(
type
!=
DCE_CACHE_DC
)
/* owned or class DC */
...
...
@@ -238,14 +237,15 @@ static INT DCE_ReleaseDC( DCE* dce )
if
(
dce
->
DCXflags
&
DCX_CACHE
)
{
/* make the DC clean so that
SetDCState
doesn't try to update the vis rgn */
/* make the DC clean so that
RestoreDC
doesn't try to update the vis rgn */
SetHookFlags16
(
HDC_16
(
dce
->
hDC
),
DCHF_VALIDATEVISRGN
);
SetDCState16
(
HDC_16
(
dce
->
hDC
),
defaultDCstate
);
RestoreDC
(
dce
->
hDC
,
1
);
/* initial save level is always 1 */
SaveDC
(
dce
->
hDC
);
/* save the state again for next time */
dce
->
DCXflags
&=
~
DCX_DCEBUSY
;
if
(
dce
->
DCXflags
&
DCX_DCEDIRTY
)
{
/* don't keep around invalidated entries
* because
SetDCState
() disables hVisRgn updates
* because
RestoreDC
() disables hVisRgn updates
* by removing dirty bit. */
if
(
dce
->
hwndCurrent
&&
USER_Driver
.
pReleaseDC
)
USER_Driver
.
pReleaseDC
(
dce
->
hwndCurrent
,
dce
->
hDC
);
...
...
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