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
41bbe707
Commit
41bbe707
authored
Feb 12, 2003
by
Warren Baird
Committed by
Alexandre Julliard
Feb 12, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Implementation of GetDeviceCaps in metafile driver.
parent
93a8687e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
1 deletion
+19
-1
init.c
dlls/gdi/mfdrv/init.c
+18
-1
metafiledrv.h
dlls/gdi/mfdrv/metafiledrv.h
+1
-0
No files found.
dlls/gdi/mfdrv/init.c
View file @
41bbe707
...
...
@@ -68,7 +68,7 @@ static const DC_FUNCTIONS MFDRV_Funcs =
NULL
,
/* pGetDCOrgEx */
NULL
,
/* pGetDIBColorTable */
NULL
,
/* pGetDIBits */
NULL
,
/* pGetDeviceCaps */
MFDRV_GetDeviceCaps
,
/* pGetDeviceCaps */
NULL
,
/* pGetDeviceGammaRamp */
NULL
,
/* pGetNearestColor */
NULL
,
/* pGetPixel */
...
...
@@ -552,3 +552,20 @@ INT MFDRV_ExtEscape( PHYSDEV dev, INT nEscape, INT cbInput, LPCVOID in_data,
}
return
0
;
}
/******************************************************************
* MFDRV_GetDeviceCaps
*
*A very simple implementation that returns DT_METAFILE
*/
INT
MFDRV_GetDeviceCaps
(
PHYSDEV
dev
,
INT
cap
)
{
switch
(
cap
)
{
case
TECHNOLOGY
:
return
DT_METAFILE
;
default:
TRACE
(
" unsupported capability %d, will return 0
\n
"
,
cap
);
return
0
;
}
}
dlls/gdi/mfdrv/metafiledrv.h
View file @
41bbe707
...
...
@@ -81,6 +81,7 @@ extern BOOL MFDRV_FillPath( PHYSDEV dev );
extern
BOOL
MFDRV_FillRgn
(
PHYSDEV
dev
,
HRGN
hrgn
,
HBRUSH
hbrush
);
extern
BOOL
MFDRV_FlattenPath
(
PHYSDEV
dev
);
extern
BOOL
MFDRV_FrameRgn
(
PHYSDEV
dev
,
HRGN
hrgn
,
HBRUSH
hbrush
,
INT
x
,
INT
y
);
extern
INT
MFDRV_GetDeviceCaps
(
PHYSDEV
dev
,
INT
cap
);
extern
INT
MFDRV_IntersectClipRect
(
PHYSDEV
dev
,
INT
left
,
INT
top
,
INT
right
,
INT
bottom
);
extern
BOOL
MFDRV_InvertRgn
(
PHYSDEV
dev
,
HRGN
hrgn
);
...
...
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