Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
86708b36
Commit
86708b36
authored
Oct 09, 2023
by
Nikolay Sivov
Committed by
Alexandre Julliard
Oct 10, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdi32/emf: Add SetBrushOrgEx() recording.
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
parent
a6a9419a
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
0 deletions
+12
-0
dc.c
dlls/gdi32/dc.c
+1
-0
emfdc.c
dlls/gdi32/emfdc.c
+10
-0
gdi_private.h
dlls/gdi32/gdi_private.h
+1
-0
No files found.
dlls/gdi32/dc.c
View file @
86708b36
...
@@ -1060,6 +1060,7 @@ BOOL WINAPI SetBrushOrgEx( HDC hdc, INT x, INT y, POINT *oldorg )
...
@@ -1060,6 +1060,7 @@ BOOL WINAPI SetBrushOrgEx( HDC hdc, INT x, INT y, POINT *oldorg )
{
{
DC_ATTR
*
dc_attr
;
DC_ATTR
*
dc_attr
;
if
(
!
(
dc_attr
=
get_dc_attr
(
hdc
)))
return
FALSE
;
if
(
!
(
dc_attr
=
get_dc_attr
(
hdc
)))
return
FALSE
;
if
(
dc_attr
->
emf
&&
!
EMFDC_SetBrushOrgEx
(
dc_attr
,
x
,
y
))
return
FALSE
;
if
(
oldorg
)
*
oldorg
=
dc_attr
->
brush_org
;
if
(
oldorg
)
*
oldorg
=
dc_attr
->
brush_org
;
dc_attr
->
brush_org
.
x
=
x
;
dc_attr
->
brush_org
.
x
=
x
;
dc_attr
->
brush_org
.
y
=
y
;
dc_attr
->
brush_org
.
y
=
y
;
...
...
dlls/gdi32/emfdc.c
View file @
86708b36
...
@@ -2129,6 +2129,16 @@ BOOL EMFDC_SetBkColor( DC_ATTR *dc_attr, COLORREF color )
...
@@ -2129,6 +2129,16 @@ BOOL EMFDC_SetBkColor( DC_ATTR *dc_attr, COLORREF color )
return
emfdc_record
(
get_dc_emf
(
dc_attr
),
&
emr
.
emr
);
return
emfdc_record
(
get_dc_emf
(
dc_attr
),
&
emr
.
emr
);
}
}
BOOL
EMFDC_SetBrushOrgEx
(
DC_ATTR
*
dc_attr
,
INT
x
,
INT
y
)
{
EMRSETBRUSHORGEX
emr
;
emr
.
emr
.
iType
=
EMR_SETBRUSHORGEX
;
emr
.
emr
.
nSize
=
sizeof
(
emr
);
emr
.
ptlOrigin
.
x
=
x
;
emr
.
ptlOrigin
.
y
=
y
;
return
emfdc_record
(
get_dc_emf
(
dc_attr
),
&
emr
.
emr
);
}
BOOL
EMFDC_SetTextColor
(
DC_ATTR
*
dc_attr
,
COLORREF
color
)
BOOL
EMFDC_SetTextColor
(
DC_ATTR
*
dc_attr
,
COLORREF
color
)
{
{
...
...
dlls/gdi32/gdi_private.h
View file @
86708b36
...
@@ -233,6 +233,7 @@ BOOL EMFDC_SelectPalette( DC_ATTR *dc_attr, HPALETTE palette );
...
@@ -233,6 +233,7 @@ BOOL EMFDC_SelectPalette( DC_ATTR *dc_attr, HPALETTE palette );
BOOL
EMFDC_SetArcDirection
(
DC_ATTR
*
dc_attr
,
INT
dir
);
BOOL
EMFDC_SetArcDirection
(
DC_ATTR
*
dc_attr
,
INT
dir
);
BOOL
EMFDC_SetBkColor
(
DC_ATTR
*
dc_attr
,
COLORREF
color
);
BOOL
EMFDC_SetBkColor
(
DC_ATTR
*
dc_attr
,
COLORREF
color
);
BOOL
EMFDC_SetBkMode
(
DC_ATTR
*
dc_attr
,
INT
mode
);
BOOL
EMFDC_SetBkMode
(
DC_ATTR
*
dc_attr
,
INT
mode
);
BOOL
EMFDC_SetBrushOrgEx
(
DC_ATTR
*
dc_attr
,
INT
x
,
INT
y
);
BOOL
EMFDC_SetDCBrushColor
(
DC_ATTR
*
dc_attr
,
COLORREF
color
);
BOOL
EMFDC_SetDCBrushColor
(
DC_ATTR
*
dc_attr
,
COLORREF
color
);
BOOL
EMFDC_SetDCPenColor
(
DC_ATTR
*
dc_attr
,
COLORREF
color
);
BOOL
EMFDC_SetDCPenColor
(
DC_ATTR
*
dc_attr
,
COLORREF
color
);
INT
EMFDC_SetDIBitsToDevice
(
DC_ATTR
*
dc_attr
,
INT
x_dest
,
INT
y_dest
,
DWORD
width
,
DWORD
height
,
INT
EMFDC_SetDIBitsToDevice
(
DC_ATTR
*
dc_attr
,
INT
x_dest
,
INT
y_dest
,
DWORD
width
,
DWORD
height
,
...
...
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