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
46329e83
Commit
46329e83
authored
Oct 22, 2003
by
Dave Belanger
Committed by
Alexandre Julliard
Oct 22, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix EMF driver UpdateBBox routine. The EMF bounding box must be stored
in device coordinates in the metafile.
parent
f388977f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
5 deletions
+8
-5
init.c
dlls/gdi/enhmfdrv/init.c
+8
-5
No files found.
dlls/gdi/enhmfdrv/init.c
View file @
46329e83
...
...
@@ -207,15 +207,18 @@ void EMFDRV_UpdateBBox( PHYSDEV dev, RECTL *rect )
{
EMFDRV_PDEVICE
*
physDev
=
(
EMFDRV_PDEVICE
*
)
dev
;
RECTL
*
bounds
=
&
physDev
->
emh
->
rclBounds
;
RECTL
vportRect
=
*
rect
;
LPtoDP
(
physDev
->
hdc
,
(
LPPOINT
)
&
vportRect
,
2
);
if
(
bounds
->
left
>
bounds
->
right
)
{
/* first rect */
*
bounds
=
*
r
ect
;
*
bounds
=
vportR
ect
;
return
;
}
bounds
->
left
=
min
(
bounds
->
left
,
rect
->
left
);
bounds
->
top
=
min
(
bounds
->
top
,
rect
->
top
);
bounds
->
right
=
max
(
bounds
->
right
,
rect
->
right
);
bounds
->
bottom
=
max
(
bounds
->
bottom
,
rect
->
bottom
);
bounds
->
left
=
min
(
bounds
->
left
,
vportRect
.
left
);
bounds
->
top
=
min
(
bounds
->
top
,
vportRect
.
top
);
bounds
->
right
=
max
(
bounds
->
right
,
vportRect
.
right
);
bounds
->
bottom
=
max
(
bounds
->
bottom
,
vportRect
.
bottom
);
return
;
}
...
...
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