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
2b6647cd
Commit
2b6647cd
authored
Jul 30, 2022
by
Jacek Caban
Committed by
Alexandre Julliard
Aug 09, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
win32u: Use platform-independent layout for DC_ATTR.
parent
fa8a5692
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9 additions
and
6 deletions
+9
-6
dc.c
dlls/gdi32/dc.c
+4
-2
emfdc.c
dlls/gdi32/emfdc.c
+0
-0
dc.c
dlls/win32u/dc.c
+2
-1
ntgdi.h
include/ntgdi.h
+3
-3
No files found.
dlls/gdi32/dc.c
View file @
2b6647cd
...
@@ -2154,6 +2154,7 @@ BOOL WINAPI CancelDC(HDC hdc)
...
@@ -2154,6 +2154,7 @@ BOOL WINAPI CancelDC(HDC hdc)
INT
WINAPI
StartDocW
(
HDC
hdc
,
const
DOCINFOW
*
doc
)
INT
WINAPI
StartDocW
(
HDC
hdc
,
const
DOCINFOW
*
doc
)
{
{
DC_ATTR
*
dc_attr
;
DC_ATTR
*
dc_attr
;
ABORTPROC
proc
;
TRACE
(
"DocName %s, Output %s, Datatype %s, fwType %#lx
\n
"
,
TRACE
(
"DocName %s, Output %s, Datatype %s, fwType %#lx
\n
"
,
debugstr_w
(
doc
->
lpszDocName
),
debugstr_w
(
doc
->
lpszOutput
),
debugstr_w
(
doc
->
lpszDocName
),
debugstr_w
(
doc
->
lpszOutput
),
...
@@ -2161,7 +2162,8 @@ INT WINAPI StartDocW( HDC hdc, const DOCINFOW *doc )
...
@@ -2161,7 +2162,8 @@ INT WINAPI StartDocW( HDC hdc, const DOCINFOW *doc )
if
(
!
(
dc_attr
=
get_dc_attr
(
hdc
)))
return
SP_ERROR
;
if
(
!
(
dc_attr
=
get_dc_attr
(
hdc
)))
return
SP_ERROR
;
if
(
dc_attr
->
abort_proc
&&
!
dc_attr
->
abort_proc
(
hdc
,
0
))
return
0
;
proc
=
(
ABORTPROC
)(
UINT_PTR
)
dc_attr
->
abort_proc
;
if
(
proc
&&
!
proc
(
hdc
,
0
))
return
0
;
return
NtGdiStartDoc
(
hdc
,
doc
,
NULL
,
0
);
return
NtGdiStartDoc
(
hdc
,
doc
,
NULL
,
0
);
}
}
...
@@ -2247,7 +2249,7 @@ INT WINAPI SetAbortProc( HDC hdc, ABORTPROC abrtprc )
...
@@ -2247,7 +2249,7 @@ INT WINAPI SetAbortProc( HDC hdc, ABORTPROC abrtprc )
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
;
dc_attr
->
abort_proc
=
abrtprc
;
dc_attr
->
abort_proc
=
(
UINT_PTR
)
abrtprc
;
return
TRUE
;
return
TRUE
;
}
}
...
...
dlls/gdi32/emfdc.c
View file @
2b6647cd
This diff is collapsed.
Click to expand it.
dlls/win32u/dc.c
View file @
2b6647cd
...
@@ -230,7 +230,8 @@ DC *alloc_dc_ptr( DWORD magic )
...
@@ -230,7 +230,8 @@ DC *alloc_dc_ptr( DWORD magic )
free
(
dc
);
free
(
dc
);
return
NULL
;
return
NULL
;
}
}
dc
->
attr
->
hdc
=
dc
->
nulldrv
.
hdc
=
dc
->
hSelf
;
dc
->
nulldrv
.
hdc
=
dc
->
hSelf
;
dc
->
attr
->
hdc
=
HandleToUlong
(
dc
->
hSelf
);
set_gdi_client_ptr
(
dc
->
hSelf
,
dc
->
attr
);
set_gdi_client_ptr
(
dc
->
hSelf
,
dc
->
attr
);
if
(
!
font_driver
.
pCreateDC
(
&
dc
->
physDev
,
NULL
,
NULL
,
NULL
))
if
(
!
font_driver
.
pCreateDC
(
&
dc
->
physDev
,
NULL
,
NULL
,
NULL
))
...
...
include/ntgdi.h
View file @
2b6647cd
...
@@ -165,7 +165,7 @@ enum
...
@@ -165,7 +165,7 @@ enum
typedef
struct
DC_ATTR
typedef
struct
DC_ATTR
{
{
HDC
hdc
;
/* handle to self */
UINT
hdc
;
/* handle to self */
LONG
disabled
;
/* disabled flag, controlled by DCHF_(DISABLE|ENABLE)DC */
LONG
disabled
;
/* disabled flag, controlled by DCHF_(DISABLE|ENABLE)DC */
int
save_level
;
int
save_level
;
COLORREF
background_color
;
COLORREF
background_color
;
...
@@ -196,8 +196,8 @@ typedef struct DC_ATTR
...
@@ -196,8 +196,8 @@ typedef struct DC_ATTR
SIZE
virtual_size
;
SIZE
virtual_size
;
UINT
font_code_page
;
UINT
font_code_page
;
RECTL
emf_bounds
;
RECTL
emf_bounds
;
void
*
emf
;
UINT64
emf
;
/* client EMF record pointer */
ABORTPROC
abort_proc
;
/* AbortProc for printing */
UINT64
abort_proc
;
/* AbortProc for printing */
}
DC_ATTR
;
}
DC_ATTR
;
struct
font_enum_entry
struct
font_enum_entry
...
...
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