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
0f5cc668
Commit
0f5cc668
authored
Aug 21, 2012
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdi32: Add a helper function to find a specific driver in the DC stack.
parent
2cd06283
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
4 deletions
+13
-4
gdi_private.h
dlls/gdi32/gdi_private.h
+8
-0
path.c
dlls/gdi32/path.c
+5
-4
No files found.
dlls/gdi32/gdi_private.h
View file @
0f5cc668
...
...
@@ -179,6 +179,14 @@ static inline PHYSDEV pop_dc_driver( DC *dc, PHYSDEV dev )
return
dev
;
}
static
inline
PHYSDEV
find_dc_driver
(
DC
*
dc
,
const
struct
gdi_dc_funcs
*
funcs
)
{
PHYSDEV
dev
;
for
(
dev
=
dc
->
physDev
;
dev
;
dev
=
dev
->
next
)
if
(
dev
->
funcs
==
funcs
)
return
dev
;
return
NULL
;
}
/* bitmap object */
typedef
struct
tagBITMAPOBJ
...
...
dlls/gdi32/path.c
View file @
0f5cc668
...
...
@@ -856,14 +856,15 @@ static BOOL pathdrv_DeleteDC( PHYSDEV dev )
BOOL
PATH_SavePath
(
DC
*
dst
,
DC
*
src
)
{
struct
path_physdev
*
phys
dev
;
PHYSDEV
dev
;
if
(
src
->
path
)
{
if
(
!
(
dst
->
path
=
copy_gdi_path
(
src
->
path
)))
return
FALSE
;
}
else
if
((
physdev
=
find_path_physdev
(
src
)))
else
if
((
dev
=
find_dc_driver
(
src
,
&
path_driver
)))
{
struct
path_physdev
*
physdev
=
get_path_physdev
(
dev
);
if
(
!
(
dst
->
path
=
copy_gdi_path
(
physdev
->
path
)))
return
FALSE
;
dst
->
path_open
=
TRUE
;
}
...
...
@@ -880,7 +881,7 @@ BOOL PATH_RestorePath( DC *dst, DC *src )
if
(
!
physdev
)
{
if
(
!
path_driver
.
pCreateDC
(
&
dst
->
physDev
,
NULL
,
NULL
,
NULL
,
NULL
))
return
FALSE
;
physdev
=
get_path_physdev
(
dst
->
physDev
);
physdev
=
get_path_physdev
(
find_dc_driver
(
dst
,
&
path_driver
)
);
}
else
free_gdi_path
(
physdev
->
path
);
...
...
@@ -2101,7 +2102,7 @@ BOOL nulldrv_BeginPath( PHYSDEV dev )
free_gdi_path
(
path
);
return
FALSE
;
}
physdev
=
get_path_physdev
(
dc
->
physDev
);
physdev
=
get_path_physdev
(
find_dc_driver
(
dc
,
&
path_driver
)
);
physdev
->
path
=
path
;
if
(
dc
->
path
)
free_gdi_path
(
dc
->
path
);
dc
->
path
=
NULL
;
...
...
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