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
6d23f3e7
Commit
6d23f3e7
authored
May 30, 2012
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdi32: Keep the source DC locked until the end in StretchBlt and AlphaBlend.
parent
61f4767a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
4 deletions
+7
-4
bitblt.c
dlls/gdi32/bitblt.c
+7
-4
No files found.
dlls/gdi32/bitblt.c
View file @
6d23f3e7
...
@@ -256,9 +256,11 @@ BOOL nulldrv_StretchBlt( PHYSDEV dst_dev, struct bitblt_coords *dst,
...
@@ -256,9 +256,11 @@ BOOL nulldrv_StretchBlt( PHYSDEV dst_dev, struct bitblt_coords *dst,
if
(
!
(
dc_src
=
get_dc_ptr
(
src_dev
->
hdc
)))
return
FALSE
;
if
(
!
(
dc_src
=
get_dc_ptr
(
src_dev
->
hdc
)))
return
FALSE
;
src_dev
=
GET_DC_PHYSDEV
(
dc_src
,
pGetImage
);
src_dev
=
GET_DC_PHYSDEV
(
dc_src
,
pGetImage
);
err
=
src_dev
->
funcs
->
pGetImage
(
src_dev
,
src_info
,
&
bits
,
src
);
if
(
src_dev
->
funcs
->
pGetImage
(
src_dev
,
src_info
,
&
bits
,
src
))
release_dc_ptr
(
dc_src
);
{
if
(
err
)
return
FALSE
;
release_dc_ptr
(
dc_src
);
return
FALSE
;
}
dst_dev
=
GET_DC_PHYSDEV
(
dc_dst
,
pPutImage
);
dst_dev
=
GET_DC_PHYSDEV
(
dc_dst
,
pPutImage
);
copy_bitmapinfo
(
dst_info
,
src_info
);
copy_bitmapinfo
(
dst_info
,
src_info
);
...
@@ -299,6 +301,7 @@ BOOL nulldrv_StretchBlt( PHYSDEV dst_dev, struct bitblt_coords *dst,
...
@@ -299,6 +301,7 @@ BOOL nulldrv_StretchBlt( PHYSDEV dst_dev, struct bitblt_coords *dst,
}
}
if
(
bits
.
free
)
bits
.
free
(
&
bits
);
if
(
bits
.
free
)
bits
.
free
(
&
bits
);
release_dc_ptr
(
dc_src
);
return
!
err
;
return
!
err
;
}
}
...
@@ -317,7 +320,6 @@ BOOL nulldrv_AlphaBlend( PHYSDEV dst_dev, struct bitblt_coords *dst,
...
@@ -317,7 +320,6 @@ BOOL nulldrv_AlphaBlend( PHYSDEV dst_dev, struct bitblt_coords *dst,
if
(
!
(
dc_src
=
get_dc_ptr
(
src_dev
->
hdc
)))
return
FALSE
;
if
(
!
(
dc_src
=
get_dc_ptr
(
src_dev
->
hdc
)))
return
FALSE
;
src_dev
=
GET_DC_PHYSDEV
(
dc_src
,
pGetImage
);
src_dev
=
GET_DC_PHYSDEV
(
dc_src
,
pGetImage
);
err
=
src_dev
->
funcs
->
pGetImage
(
src_dev
,
src_info
,
&
bits
,
src
);
err
=
src_dev
->
funcs
->
pGetImage
(
src_dev
,
src_info
,
&
bits
,
src
);
release_dc_ptr
(
dc_src
);
if
(
err
)
goto
done
;
if
(
err
)
goto
done
;
dst_dev
=
GET_DC_PHYSDEV
(
dc_dst
,
pBlendImage
);
dst_dev
=
GET_DC_PHYSDEV
(
dc_dst
,
pBlendImage
);
...
@@ -339,6 +341,7 @@ BOOL nulldrv_AlphaBlend( PHYSDEV dst_dev, struct bitblt_coords *dst,
...
@@ -339,6 +341,7 @@ BOOL nulldrv_AlphaBlend( PHYSDEV dst_dev, struct bitblt_coords *dst,
if
(
bits
.
free
)
bits
.
free
(
&
bits
);
if
(
bits
.
free
)
bits
.
free
(
&
bits
);
done:
done:
release_dc_ptr
(
dc_src
);
if
(
err
)
SetLastError
(
err
);
if
(
err
)
SetLastError
(
err
);
return
!
err
;
return
!
err
;
}
}
...
...
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