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
399967c1
Commit
399967c1
authored
May 21, 2003
by
Mike McCormack
Committed by
Alexandre Julliard
May 21, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Implemented GdiComment for enhanced metafiles.
parent
b168f12a
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
42 additions
and
2 deletions
+42
-2
driver.c
dlls/gdi/driver.c
+1
-0
enhmetafiledrv.h
dlls/gdi/enhmfdrv/enhmetafiledrv.h
+1
-0
init.c
dlls/gdi/enhmfdrv/init.c
+1
-0
objects.c
dlls/gdi/enhmfdrv/objects.c
+27
-0
init.c
dlls/gdi/mfdrv/init.c
+1
-0
gdi.h
include/gdi.h
+1
-0
gdiobj.c
objects/gdiobj.c
+10
-2
No files found.
dlls/gdi/driver.c
View file @
399967c1
...
...
@@ -94,6 +94,7 @@ static struct graphics_driver *create_driver( HMODULE module )
GET_FUNC
(
FillRgn
);
GET_FUNC
(
FlattenPath
);
GET_FUNC
(
FrameRgn
);
GET_FUNC
(
GdiComment
);
GET_FUNC
(
GetBitmapBits
);
GET_FUNC
(
GetCharWidth
);
GET_FUNC
(
GetDCOrgEx
);
...
...
dlls/gdi/enhmfdrv/enhmetafiledrv.h
View file @
399967c1
...
...
@@ -77,6 +77,7 @@ extern BOOL EMFDRV_FillRgn( PHYSDEV dev, HRGN hrgn, HBRUSH hbrush );
extern
BOOL
EMFDRV_FlattenPath
(
PHYSDEV
dev
);
extern
BOOL
EMFDRV_FrameRgn
(
PHYSDEV
dev
,
HRGN
hrgn
,
HBRUSH
hbrush
,
INT
width
,
INT
height
);
extern
BOOL
EMFDRV_GdiComment
(
PHYSDEV
dev
,
UINT
bytes
,
CONST
BYTE
*
buffer
);
extern
INT
EMFDRV_GetDeviceCaps
(
PHYSDEV
dev
,
INT
cap
);
extern
INT
EMFDRV_IntersectClipRect
(
PHYSDEV
dev
,
INT
left
,
INT
top
,
INT
right
,
INT
bottom
);
...
...
dlls/gdi/enhmfdrv/init.c
View file @
399967c1
...
...
@@ -62,6 +62,7 @@ static const DC_FUNCTIONS EMFDRV_Funcs =
EMFDRV_FillRgn
,
/* pFillRgn */
EMFDRV_FlattenPath
,
/* pFlattenPath */
EMFDRV_FrameRgn
,
/* pFrameRgn */
EMFDRV_GdiComment
,
/* pGdiComment */
NULL
,
/* pGetBitmapBits */
NULL
,
/* pGetCharWidth */
NULL
,
/* pGetDCOrgEx */
...
...
dlls/gdi/enhmfdrv/objects.c
View file @
399967c1
...
...
@@ -264,3 +264,30 @@ HPEN EMFDRV_SelectPen(PHYSDEV dev, HPEN hPen )
emr
.
ihObject
=
index
;
return
EMFDRV_WriteRecord
(
dev
,
&
emr
.
emr
)
?
hPen
:
0
;
}
/******************************************************************
* EMFDRV_GdiComment
*/
BOOL
EMFDRV_GdiComment
(
PHYSDEV
dev
,
UINT
bytes
,
CONST
BYTE
*
buffer
)
{
EMRGDICOMMENT
*
emr
;
UINT
total
,
rounded_size
;
BOOL
ret
;
rounded_size
=
(
bytes
+
3
)
&
~
3
;
total
=
offsetof
(
EMRGDICOMMENT
,
Data
)
+
rounded_size
;
emr
=
HeapAlloc
(
GetProcessHeap
(),
0
,
total
);
emr
->
emr
.
iType
=
EMR_GDICOMMENT
;
emr
->
emr
.
nSize
=
total
;
emr
->
cbData
=
bytes
;
memset
(
&
emr
->
Data
[
bytes
],
0
,
rounded_size
-
bytes
);
memcpy
(
&
emr
->
Data
[
0
],
buffer
,
bytes
);
ret
=
EMFDRV_WriteRecord
(
dev
,
&
emr
->
emr
);
HeapFree
(
GetProcessHeap
(),
0
,
emr
);
return
ret
;
}
dlls/gdi/mfdrv/init.c
View file @
399967c1
...
...
@@ -63,6 +63,7 @@ static const DC_FUNCTIONS MFDRV_Funcs =
MFDRV_FillRgn
,
/* pFillRgn */
MFDRV_FlattenPath
,
/* pFlattenPath */
MFDRV_FrameRgn
,
/* pFrameRgn */
NULL
,
/* pGdiComment */
NULL
,
/* pGetBitmapBits */
NULL
,
/* pGetCharWidth */
NULL
,
/* pGetDCOrgEx */
...
...
include/gdi.h
View file @
399967c1
...
...
@@ -202,6 +202,7 @@ typedef struct tagDC_FUNCS
BOOL
(
*
pFillRgn
)(
PHYSDEV
,
HRGN
,
HBRUSH
);
BOOL
(
*
pFlattenPath
)(
PHYSDEV
);
BOOL
(
*
pFrameRgn
)(
PHYSDEV
,
HRGN
,
HBRUSH
,
INT
,
INT
);
BOOL
(
*
pGdiComment
)(
PHYSDEV
,
UINT
,
CONST
BYTE
*
);
LONG
(
*
pGetBitmapBits
)(
HBITMAP
,
void
*
,
LONG
);
BOOL
(
*
pGetCharWidth
)(
PHYSDEV
,
UINT
,
UINT
,
LPINT
);
BOOL
(
*
pGetDCOrgEx
)(
PHYSDEV
,
LPPOINT
);
...
...
objects/gdiobj.c
View file @
399967c1
...
...
@@ -1370,9 +1370,17 @@ BOOL WINAPI SetMiterLimit(HDC hdc, FLOAT eNewLimit, PFLOAT peOldLimit)
*/
BOOL
WINAPI
GdiComment
(
HDC
hdc
,
UINT
cbSize
,
const
BYTE
*
lpData
)
{
FIXME
(
"GdiComment, stub
\n
"
);
return
0
;
DC
*
dc
=
DC_GetDCPtr
(
hdc
);
BOOL
ret
=
FALSE
;
if
(
dc
)
{
if
(
dc
->
funcs
->
pGdiComment
)
ret
=
dc
->
funcs
->
pGdiComment
(
dc
->
physDev
,
cbSize
,
lpData
);
}
GDI_ReleaseObj
(
hdc
);
return
ret
;
}
/*******************************************************************
* SetColorAdjustment [GDI32.@]
*
...
...
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