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
3da1e246
Commit
3da1e246
authored
Oct 10, 2003
by
Dave Belanger
Committed by
Alexandre Julliard
Oct 10, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Implementation of SetTextJustication EMF driver callback.
parent
43e8471a
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
1 deletion
+13
-1
dc.c
dlls/gdi/enhmfdrv/dc.c
+10
-0
enhmetafiledrv.h
dlls/gdi/enhmfdrv/enhmetafiledrv.h
+2
-0
init.c
dlls/gdi/enhmfdrv/init.c
+1
-1
No files found.
dlls/gdi/enhmfdrv/dc.c
View file @
3da1e246
...
...
@@ -62,6 +62,16 @@ UINT EMFDRV_SetTextAlign( PHYSDEV dev, UINT align )
return
EMFDRV_WriteRecord
(
dev
,
&
emr
.
emr
);
}
BOOL
EMFDRV_SetTextJustification
(
PHYSDEV
dev
,
INT
nBreakExtra
,
INT
nBreakCount
)
{
EMRSETTEXTJUSTIFICATION
emr
;
emr
.
emr
.
iType
=
EMR_SETTEXTJUSTIFICATION
;
emr
.
emr
.
nSize
=
sizeof
(
emr
);
emr
.
nBreakExtra
=
nBreakExtra
;
emr
.
nBreakCount
=
nBreakCount
;
return
EMFDRV_WriteRecord
(
dev
,
&
emr
.
emr
);
}
INT
EMFDRV_SetBkMode
(
PHYSDEV
dev
,
INT
mode
)
{
EMRSETBKMODE
emr
;
...
...
dlls/gdi/enhmfdrv/enhmetafiledrv.h
View file @
3da1e246
...
...
@@ -135,6 +135,8 @@ extern INT EMFDRV_SetROP2( PHYSDEV dev, INT rop );
extern
INT
EMFDRV_SetStretchBltMode
(
PHYSDEV
dev
,
INT
mode
);
extern
UINT
EMFDRV_SetTextAlign
(
PHYSDEV
dev
,
UINT
align
);
extern
COLORREF
EMFDRV_SetTextColor
(
PHYSDEV
dev
,
COLORREF
color
);
extern
BOOL
EMFDRV_SetTextJustification
(
PHYSDEV
dev
,
INT
nBreakExtra
,
INT
nBreakCount
);
extern
INT
EMFDRV_SetViewportExt
(
PHYSDEV
dev
,
INT
x
,
INT
y
);
extern
INT
EMFDRV_SetViewportOrg
(
PHYSDEV
dev
,
INT
x
,
INT
y
);
extern
INT
EMFDRV_SetWindowExt
(
PHYSDEV
dev
,
INT
x
,
INT
y
);
...
...
dlls/gdi/enhmfdrv/init.c
View file @
3da1e246
...
...
@@ -133,7 +133,7 @@ static const DC_FUNCTIONS EMFDRV_Funcs =
EMFDRV_SetTextAlign
,
/* pSetTextAlign */
NULL
,
/* pSetTextCharacterExtra */
EMFDRV_SetTextColor
,
/* pSetTextColor */
NULL
,
/* pSetTextJustification */
EMFDRV_SetTextJustification
,
/* pSetTextJustification */
EMFDRV_SetViewportExt
,
/* pSetViewportExt */
EMFDRV_SetViewportOrg
,
/* pSetViewportOrg */
EMFDRV_SetWindowExt
,
/* pSetWindowExt */
...
...
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