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
d1fa4b2d
Commit
d1fa4b2d
authored
Oct 07, 2003
by
Dave Belanger
Committed by
Alexandre Julliard
Oct 07, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Spit out EMR_RESTOREDC metarecords with -1 as argument as long as we
don't get to the saved state we want.
parent
ca2902f3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
2 deletions
+15
-2
dc.c
dlls/gdi/enhmfdrv/dc.c
+15
-2
No files found.
dlls/gdi/enhmfdrv/dc.c
View file @
d1fa4b2d
...
...
@@ -33,11 +33,24 @@ INT EMFDRV_SaveDC( PHYSDEV dev )
BOOL
EMFDRV_RestoreDC
(
PHYSDEV
dev
,
INT
level
)
{
EMFDRV_PDEVICE
*
physDev
=
(
EMFDRV_PDEVICE
*
)
dev
;
EMRRESTOREDC
emr
;
emr
.
emr
.
iType
=
EMR_RESTOREDC
;
emr
.
emr
.
nSize
=
sizeof
(
emr
);
emr
.
iRelative
=
level
;
return
EMFDRV_WriteRecord
(
dev
,
&
emr
.
emr
);
emr
.
iRelative
=
-
1
;
if
(
level
==
-
1
)
return
EMFDRV_WriteRecord
(
dev
,
&
emr
.
emr
);
else
if
(
level
>
0
&&
level
<=
physDev
->
dc
->
saveLevel
)
{
while
(
level
>=
physDev
->
dc
->
saveLevel
)
{
EMFDRV_WriteRecord
(
dev
,
&
emr
.
emr
);
level
--
;
}
return
TRUE
;
}
return
FALSE
;
}
UINT
EMFDRV_SetTextAlign
(
PHYSDEV
dev
,
UINT
align
)
...
...
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