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
36a6c740
Commit
36a6c740
authored
Oct 09, 2003
by
Dave Belanger
Committed by
Alexandre Julliard
Oct 09, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Implementation of EMF driver OffsetViewportOrg and OffsetWindowOrg
callbacks using the EMR_SETVIEWPORTORGEX and EMR_SETWINDOWORGEX metarecords respectively.
parent
8e5bb205
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
28 additions
and
2 deletions
+28
-2
init.c
dlls/gdi/enhmfdrv/init.c
+2
-2
mapping.c
dlls/gdi/enhmfdrv/mapping.c
+26
-0
No files found.
dlls/gdi/enhmfdrv/init.c
View file @
36a6c740
...
...
@@ -84,8 +84,8 @@ static const DC_FUNCTIONS EMFDRV_Funcs =
EMFDRV_ModifyWorldTransform
,
/* pModifyWorldTransform */
EMFDRV_MoveTo
,
/* pMoveTo */
EMFDRV_OffsetClipRgn
,
/* pOffsetClipRgn */
NULL
,
/* pOffsetViewportOrg */
NULL
,
/* pOffsetWindowOrg */
EMFDRV_OffsetViewportOrg
,
/* pOffsetViewportOrg */
EMFDRV_OffsetWindowOrg
,
/* pOffsetWindowOrg */
EMFDRV_PaintRgn
,
/* pPaintRgn */
EMFDRV_PatBlt
,
/* pPatBlt */
EMFDRV_Pie
,
/* pPie */
...
...
dlls/gdi/enhmfdrv/mapping.c
View file @
36a6c740
...
...
@@ -130,3 +130,29 @@ BOOL EMFDRV_ModifyWorldTransform( PHYSDEV dev, const XFORM *xform, INT mode)
return
EMFDRV_WriteRecord
(
dev
,
&
emr
.
emr
);
}
INT
EMFDRV_OffsetViewportOrg
(
PHYSDEV
dev
,
INT
x
,
INT
y
)
{
EMRSETVIEWPORTORGEX
emr
;
EMFDRV_PDEVICE
*
physDev
=
(
EMFDRV_PDEVICE
*
)
dev
;
emr
.
emr
.
iType
=
EMR_SETVIEWPORTORGEX
;
emr
.
emr
.
nSize
=
sizeof
(
emr
);
emr
.
ptlOrigin
.
x
=
physDev
->
dc
->
vportOrgX
+
x
;
emr
.
ptlOrigin
.
y
=
physDev
->
dc
->
vportOrgY
+
y
;
return
EMFDRV_WriteRecord
(
dev
,
&
emr
.
emr
);
}
INT
EMFDRV_OffsetWindowOrg
(
PHYSDEV
dev
,
INT
x
,
INT
y
)
{
EMRSETWINDOWORGEX
emr
;
EMFDRV_PDEVICE
*
physDev
=
(
EMFDRV_PDEVICE
*
)
dev
;
emr
.
emr
.
iType
=
EMR_SETWINDOWORGEX
;
emr
.
emr
.
nSize
=
sizeof
(
emr
);
emr
.
ptlOrigin
.
x
=
physDev
->
dc
->
wndOrgX
+
x
;
emr
.
ptlOrigin
.
y
=
physDev
->
dc
->
wndOrgY
+
y
;
return
EMFDRV_WriteRecord
(
dev
,
&
emr
.
emr
);
}
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