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
b12a782e
Commit
b12a782e
authored
Sep 24, 2007
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdi32: Don't hold the GDI lock while calling the driver clipping functions.
parent
2e2df3fa
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
10 deletions
+10
-10
clipping.c
dlls/gdi32/clipping.c
+10
-10
No files found.
dlls/gdi32/clipping.c
View file @
b12a782e
...
...
@@ -172,7 +172,7 @@ INT16 WINAPI SelectVisRgn16( HDC16 hdc16, HRGN16 hrgn )
DC
*
dc
;
if
(
!
hrgn
)
return
ERROR
;
if
(
!
(
dc
=
DC_GetDCP
tr
(
hdc
)))
return
ERROR
;
if
(
!
(
dc
=
get_dc_p
tr
(
hdc
)))
return
ERROR
;
TRACE
(
"%p %04x
\n
"
,
hdc
,
hrgn
);
...
...
@@ -180,7 +180,7 @@ INT16 WINAPI SelectVisRgn16( HDC16 hdc16, HRGN16 hrgn )
retval
=
CombineRgn
(
dc
->
hVisRgn
,
HRGN_32
(
hrgn
),
0
,
RGN_COPY
);
CLIPPING_UpdateGCRegion
(
dc
);
DC_ReleaseDCP
tr
(
dc
);
release_dc_p
tr
(
dc
);
return
retval
;
}
...
...
@@ -478,14 +478,14 @@ INT WINAPI GetClipRgn( HDC hdc, HRGN hRgn )
{
INT
ret
=
-
1
;
DC
*
dc
;
if
(
hRgn
&&
(
dc
=
DC_GetDCP
tr
(
hdc
)))
if
(
hRgn
&&
(
dc
=
get_dc_p
tr
(
hdc
)))
{
if
(
dc
->
hClipRgn
)
{
if
(
CombineRgn
(
hRgn
,
dc
->
hClipRgn
,
0
,
RGN_COPY
)
!=
ERROR
)
ret
=
1
;
}
else
ret
=
0
;
DC_ReleaseDCP
tr
(
dc
);
release_dc_p
tr
(
dc
);
}
return
ret
;
}
...
...
@@ -497,13 +497,13 @@ INT WINAPI GetClipRgn( HDC hdc, HRGN hRgn )
INT
WINAPI
GetMetaRgn
(
HDC
hdc
,
HRGN
hRgn
)
{
INT
ret
=
0
;
DC
*
dc
=
DC_GetDCP
tr
(
hdc
);
DC
*
dc
=
get_dc_p
tr
(
hdc
);
if
(
dc
)
{
if
(
dc
->
hMetaRgn
&&
CombineRgn
(
hRgn
,
dc
->
hMetaRgn
,
0
,
RGN_COPY
)
!=
ERROR
)
ret
=
1
;
DC_ReleaseDCP
tr
(
dc
);
release_dc_p
tr
(
dc
);
}
return
ret
;
}
...
...
@@ -544,7 +544,7 @@ INT16 WINAPI RestoreVisRgn16( HDC16 hdc16 )
{
struct
saved_visrgn
*
saved
;
HDC
hdc
=
HDC_32
(
hdc16
);
DC
*
dc
=
DC_GetDCP
tr
(
hdc
);
DC
*
dc
=
get_dc_p
tr
(
hdc
);
INT16
ret
=
ERROR
;
if
(
!
dc
)
return
ERROR
;
...
...
@@ -559,7 +559,7 @@ INT16 WINAPI RestoreVisRgn16( HDC16 hdc16 )
HeapFree
(
GetProcessHeap
(),
0
,
saved
);
CLIPPING_UpdateGCRegion
(
dc
);
done:
DC_ReleaseDCP
tr
(
dc
);
release_dc_p
tr
(
dc
);
return
ret
;
}
...
...
@@ -628,7 +628,7 @@ INT WINAPI SetMetaRgn( HDC hdc )
{
INT
ret
;
RECT
dummy
;
DC
*
dc
=
DC_GetDCP
tr
(
hdc
);
DC
*
dc
=
get_dc_p
tr
(
hdc
);
if
(
!
dc
)
return
ERROR
;
...
...
@@ -651,6 +651,6 @@ INT WINAPI SetMetaRgn( HDC hdc )
/* Note: no need to call CLIPPING_UpdateGCRegion, the overall clip region hasn't changed */
ret
=
GetRgnBox
(
dc
->
hMetaRgn
,
&
dummy
);
DC_ReleaseDCP
tr
(
dc
);
release_dc_p
tr
(
dc
);
return
ret
;
}
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