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
b61925e1
Commit
b61925e1
authored
Jun 18, 2012
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdi32: Fix the contents of the region data in metafiles.
parent
120c413f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
3 deletions
+11
-3
graphics.c
dlls/gdi32/mfdrv/graphics.c
+11
-3
No files found.
dlls/gdi32/mfdrv/graphics.c
View file @
b61925e1
...
...
@@ -309,13 +309,21 @@ static INT16 MFDRV_CreateRegion(PHYSDEV dev, HRGN hrgn)
*
Param
++
=
pCurRect
->
right
;
}
}
len
=
Param
-
(
WORD
*
)
mr
;
if
(
StartBand
)
{
*
StartBand
=
Param
-
StartBand
-
3
;
*
Param
++
=
*
StartBand
;
if
(
*
StartBand
>
MaxBands
)
MaxBands
=
*
StartBand
;
Bands
++
;
}
mr
->
rdParm
[
0
]
=
0
;
mr
->
rdParm
[
1
]
=
6
;
mr
->
rdParm
[
2
]
=
0x1234
;
mr
->
rdParm
[
3
]
=
0
;
mr
->
rdParm
[
4
]
=
len
*
2
;
mr
->
rdParm
[
4
]
=
(
Param
-
mr
->
rdParm
)
*
sizeof
(
WORD
)
;
mr
->
rdParm
[
5
]
=
Bands
;
mr
->
rdParm
[
6
]
=
MaxBands
;
mr
->
rdParm
[
7
]
=
rgndata
->
rdh
.
rcBound
.
left
;
...
...
@@ -323,7 +331,7 @@ static INT16 MFDRV_CreateRegion(PHYSDEV dev, HRGN hrgn)
mr
->
rdParm
[
9
]
=
rgndata
->
rdh
.
rcBound
.
right
;
mr
->
rdParm
[
10
]
=
rgndata
->
rdh
.
rcBound
.
bottom
;
mr
->
rdFunction
=
META_CREATEREGION
;
mr
->
rdSize
=
len
/
2
;
mr
->
rdSize
=
Param
-
(
WORD
*
)
mr
;
ret
=
MFDRV_WriteRecord
(
dev
,
mr
,
mr
->
rdSize
*
2
);
HeapFree
(
GetProcessHeap
(),
0
,
mr
);
HeapFree
(
GetProcessHeap
(),
0
,
rgndata
);
...
...
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