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
5a7dba5a
Commit
5a7dba5a
authored
May 18, 2011
by
Alistair Leslie-Hughes
Committed by
Alexandre Julliard
May 19, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdi32: Add support in DeviceCaps CURVECAPS, LINECAPS, POLYGONALCAPS for EnhMetafiles.
parent
73b9acf2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
0 deletions
+20
-0
dc.c
dlls/gdi32/enhmfdrv/dc.c
+9
-0
metafile.c
dlls/gdi32/tests/metafile.c
+11
-0
No files found.
dlls/gdi32/enhmfdrv/dc.c
View file @
5a7dba5a
...
@@ -541,6 +541,15 @@ INT CDECL EMFDRV_GetDeviceCaps(PHYSDEV dev, INT cap)
...
@@ -541,6 +541,15 @@ INT CDECL EMFDRV_GetDeviceCaps(PHYSDEV dev, INT cap)
return
physDev
->
planes
;
return
physDev
->
planes
;
case
NUMCOLORS
:
case
NUMCOLORS
:
return
physDev
->
numcolors
;
return
physDev
->
numcolors
;
case
CURVECAPS
:
return
(
CC_CIRCLES
|
CC_PIE
|
CC_CHORD
|
CC_ELLIPSES
|
CC_WIDE
|
CC_STYLED
|
CC_WIDESTYLED
|
CC_INTERIORS
|
CC_ROUNDRECT
);
case
LINECAPS
:
return
(
LC_POLYLINE
|
LC_MARKER
|
LC_POLYMARKER
|
LC_WIDE
|
LC_STYLED
|
LC_WIDESTYLED
|
LC_INTERIORS
);
case
POLYGONALCAPS
:
return
(
PC_POLYGON
|
PC_RECTANGLE
|
PC_WINDPOLYGON
|
PC_SCANLINE
|
PC_WIDE
|
PC_STYLED
|
PC_WIDESTYLED
|
PC_INTERIORS
);
default:
default:
FIXME
(
"Unimplemented cap %d
\n
"
,
cap
);
FIXME
(
"Unimplemented cap %d
\n
"
,
cap
);
return
0
;
return
0
;
...
...
dlls/gdi32/tests/metafile.c
View file @
5a7dba5a
...
@@ -2806,6 +2806,7 @@ static void getwinmetafilebits(UINT mode, int scale, RECT *rc)
...
@@ -2806,6 +2806,7 @@ static void getwinmetafilebits(UINT mode, int scale, RECT *rc)
METAHEADER
*
mh
=
NULL
;
METAHEADER
*
mh
=
NULL
;
METARECORD
*
rec
;
METARECORD
*
rec
;
INT
horz_res
,
vert_res
,
horz_size
,
vert_size
;
INT
horz_res
,
vert_res
,
horz_size
,
vert_size
;
INT
curve_caps
,
line_caps
,
poly_caps
;
display_dc
=
GetDC
(
NULL
);
display_dc
=
GetDC
(
NULL
);
ok
(
display_dc
!=
NULL
,
"display_dc is NULL
\n
"
);
ok
(
display_dc
!=
NULL
,
"display_dc is NULL
\n
"
);
...
@@ -2817,6 +2818,16 @@ static void getwinmetafilebits(UINT mode, int scale, RECT *rc)
...
@@ -2817,6 +2818,16 @@ static void getwinmetafilebits(UINT mode, int scale, RECT *rc)
emf_dc
=
CreateEnhMetaFileA
(
display_dc
,
NULL
,
rc
,
NULL
);
emf_dc
=
CreateEnhMetaFileA
(
display_dc
,
NULL
,
rc
,
NULL
);
ok
(
emf_dc
!=
NULL
,
"emf_dc is NULL
\n
"
);
ok
(
emf_dc
!=
NULL
,
"emf_dc is NULL
\n
"
);
curve_caps
=
GetDeviceCaps
(
emf_dc
,
CURVECAPS
);
ok
(
curve_caps
==
511
,
"expect 511 got %d
\n
"
,
curve_caps
);
line_caps
=
GetDeviceCaps
(
emf_dc
,
LINECAPS
);
ok
(
line_caps
==
254
,
"expect 254 got %d
\n
"
,
line_caps
);
poly_caps
=
GetDeviceCaps
(
emf_dc
,
POLYGONALCAPS
);
ok
(
poly_caps
==
255
,
"expect 511 got %d
\n
"
,
poly_caps
);
for
(
i
=
0
;
i
<
3000
;
i
++
)
/* This is enough to take emf_size > 0xffff */
for
(
i
=
0
;
i
<
3000
;
i
++
)
/* This is enough to take emf_size > 0xffff */
Rectangle
(
emf_dc
,
0
,
0
,
1000
,
20
);
Rectangle
(
emf_dc
,
0
,
0
,
1000
,
20
);
emf
=
CloseEnhMetaFile
(
emf_dc
);
emf
=
CloseEnhMetaFile
(
emf_dc
);
...
...
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