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
325f646f
Commit
325f646f
authored
Oct 04, 2003
by
Dave Belanger
Committed by
Alexandre Julliard
Oct 04, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Implemented the SetArcDirection metarecord in EMF driver.
parent
e3f6ed2d
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
26 additions
and
0 deletions
+26
-0
driver.c
dlls/gdi/driver.c
+1
-0
enhmetafiledrv.h
dlls/gdi/enhmfdrv/enhmetafiledrv.h
+1
-0
graphics.c
dlls/gdi/enhmfdrv/graphics.c
+17
-0
init.c
dlls/gdi/enhmfdrv/init.c
+1
-0
init.c
dlls/gdi/mfdrv/init.c
+1
-0
gdi.h
include/gdi.h
+1
-0
dc.c
objects/dc.c
+4
-0
No files found.
dlls/gdi/driver.c
View file @
325f646f
...
...
@@ -153,6 +153,7 @@ static struct graphics_driver *create_driver( HMODULE module )
GET_FUNC
(
SelectFont
);
GET_FUNC
(
SelectPalette
);
GET_FUNC
(
SelectPen
);
GET_FUNC
(
SetArcDirection
);
GET_FUNC
(
SetBitmapBits
);
GET_FUNC
(
SetBkColor
);
GET_FUNC
(
SetBkMode
);
...
...
dlls/gdi/enhmfdrv/enhmetafiledrv.h
View file @
325f646f
...
...
@@ -119,6 +119,7 @@ extern HBRUSH EMFDRV_SelectBrush( PHYSDEV dev, HBRUSH handle );
extern
BOOL
EMFDRV_SelectClipPath
(
PHYSDEV
dev
,
INT
iMode
);
extern
HFONT
EMFDRV_SelectFont
(
PHYSDEV
dev
,
HFONT
handle
);
extern
HPEN
EMFDRV_SelectPen
(
PHYSDEV
dev
,
HPEN
handle
);
extern
INT
EMFDRV_SetArcDirection
(
PHYSDEV
dev
,
INT
arcDirection
);
extern
COLORREF
EMFDRV_SetBkColor
(
PHYSDEV
dev
,
COLORREF
color
);
extern
INT
EMFDRV_SetBkMode
(
PHYSDEV
dev
,
INT
mode
);
extern
INT
EMFDRV_SetDIBitsToDevice
(
PHYSDEV
dev
,
INT
xDest
,
INT
yDest
,
...
...
dlls/gdi/enhmfdrv/graphics.c
View file @
325f646f
...
...
@@ -693,3 +693,20 @@ BOOL EMFDRV_ExtTextOut( PHYSDEV dev, INT x, INT y, UINT flags,
HeapFree
(
GetProcessHeap
(),
0
,
pemr
);
return
ret
;
}
/**********************************************************************
* EMFDRV_SetArcDirection
*/
INT
EMFDRV_SetArcDirection
(
PHYSDEV
dev
,
INT
arcDirection
)
{
EMRSETARCDIRECTION
emr
;
emr
.
emr
.
iType
=
EMR_SETARCDIRECTION
;
emr
.
emr
.
nSize
=
sizeof
(
emr
);
emr
.
iArcDirection
=
arcDirection
;
EMFDRV_WriteRecord
(
dev
,
&
emr
.
emr
);
/* We don't know the old arc direction and we don't care... */
return
0
;
}
dlls/gdi/enhmfdrv/init.c
View file @
325f646f
...
...
@@ -112,6 +112,7 @@ static const DC_FUNCTIONS EMFDRV_Funcs =
EMFDRV_SelectFont
,
/* pSelectFont */
NULL
,
/* pSelectPalette */
EMFDRV_SelectPen
,
/* pSelectPen */
EMFDRV_SetArcDirection
,
/* pSetArcDirection */
NULL
,
/* pSetBitmapBits */
EMFDRV_SetBkColor
,
/* pSetBkColor */
EMFDRV_SetBkMode
,
/* pSetBkMode */
...
...
dlls/gdi/mfdrv/init.c
View file @
325f646f
...
...
@@ -113,6 +113,7 @@ static const DC_FUNCTIONS MFDRV_Funcs =
MFDRV_SelectFont
,
/* pSelectFont */
MFDRV_SelectPalette
,
/* pSelectPalette */
MFDRV_SelectPen
,
/* pSelectPen */
NULL
,
/* pSetArcDirection */
NULL
,
/* pSetBitmapBits */
MFDRV_SetBkColor
,
/* pSetBkColor */
MFDRV_SetBkMode
,
/* pSetBkMode */
...
...
include/gdi.h
View file @
325f646f
...
...
@@ -252,6 +252,7 @@ typedef struct tagDC_FUNCS
HFONT
(
*
pSelectFont
)(
PHYSDEV
,
HFONT
);
HPALETTE
(
*
pSelectPalette
)(
PHYSDEV
,
HPALETTE
,
BOOL
);
HPEN
(
*
pSelectPen
)(
PHYSDEV
,
HPEN
);
INT
(
*
pSetArcDirection
)(
PHYSDEV
,
INT
);
LONG
(
*
pSetBitmapBits
)(
HBITMAP
,
const
void
*
,
LONG
);
COLORREF
(
*
pSetBkColor
)(
PHYSDEV
,
COLORREF
);
INT
(
*
pSetBkMode
)(
PHYSDEV
,
INT
);
...
...
objects/dc.c
View file @
325f646f
...
...
@@ -987,6 +987,10 @@ INT WINAPI SetArcDirection( HDC hdc, INT nDirection )
if
((
dc
=
DC_GetDCPtr
(
hdc
)))
{
if
(
dc
->
funcs
->
pSetArcDirection
)
{
dc
->
funcs
->
pSetArcDirection
(
dc
->
physDev
,
nDirection
);
}
nOldDirection
=
dc
->
ArcDirection
;
dc
->
ArcDirection
=
nDirection
;
GDI_ReleaseObj
(
hdc
);
...
...
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