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
2ba1a437
Commit
2ba1a437
authored
Aug 03, 2011
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdi32: Use the visrect coordinates in dibdrv_PutImage.
parent
89dcf229
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
11 deletions
+6
-11
dc.c
dlls/gdi32/dibdrv/dc.c
+6
-11
No files found.
dlls/gdi32/dibdrv/dc.c
View file @
2ba1a437
...
...
@@ -513,7 +513,6 @@ static DWORD dibdrv_PutImage( PHYSDEV dev, HBITMAP hbitmap, HRGN clip, BITMAPINF
{
dib_info
*
dib
,
stand_alone
;
DWORD
ret
;
RECT
rect
;
POINT
origin
;
dib_info
src_dib
;
HRGN
total_clip
,
saved_clip
=
NULL
;
...
...
@@ -564,12 +563,8 @@ static DWORD dibdrv_PutImage( PHYSDEV dev, HBITMAP hbitmap, HRGN clip, BITMAPINF
init_dib_info_from_bitmapinfo
(
&
src_dib
,
info
,
bits
->
ptr
,
0
);
rect
.
left
=
dst
->
x
;
rect
.
top
=
dst
->
y
;
rect
.
right
=
dst
->
x
+
dst
->
width
;
rect
.
bottom
=
dst
->
y
+
dst
->
height
;
origin
.
x
=
src
->
x
;
origin
.
y
=
src
->
y
;
origin
.
x
=
src
->
visrect
.
left
;
origin
.
y
=
src
->
visrect
.
top
;
if
(
hbitmap
)
{
...
...
@@ -583,7 +578,7 @@ static DWORD dibdrv_PutImage( PHYSDEV dev, HBITMAP hbitmap, HRGN clip, BITMAPINF
rop2
=
((
rop
>>
16
)
&
0xf
)
+
1
;
}
if
(
total_clip
==
NULL
)
dib
->
funcs
->
copy_rect
(
dib
,
&
rect
,
&
src_dib
,
&
origin
,
rop2
);
if
(
total_clip
==
NULL
)
dib
->
funcs
->
copy_rect
(
dib
,
&
dst
->
vis
rect
,
&
src_dib
,
&
origin
,
rop2
);
else
{
clip_data
=
get_wine_region
(
total_clip
);
...
...
@@ -591,10 +586,10 @@ static DWORD dibdrv_PutImage( PHYSDEV dev, HBITMAP hbitmap, HRGN clip, BITMAPINF
{
RECT
clipped_rect
;
if
(
intersect_rect
(
&
clipped_rect
,
&
rect
,
clip_data
->
rects
+
i
))
if
(
intersect_rect
(
&
clipped_rect
,
&
dst
->
vis
rect
,
clip_data
->
rects
+
i
))
{
origin
.
x
=
src
->
x
+
clipped_rect
.
left
-
dst
->
x
;
origin
.
y
=
src
->
y
+
clipped_rect
.
top
-
dst
->
y
;
origin
.
x
=
src
->
visrect
.
left
+
clipped_rect
.
left
-
dst
->
visrect
.
left
;
origin
.
y
=
src
->
visrect
.
top
+
clipped_rect
.
top
-
dst
->
visrect
.
top
;
dib
->
funcs
->
copy_rect
(
dib
,
&
clipped_rect
,
&
src_dib
,
&
origin
,
rop2
);
}
}
...
...
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