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
2e908e06
Commit
2e908e06
authored
Aug 19, 2011
by
Huw Davies
Committed by
Alexandre Julliard
Aug 22, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdi32: Simplify dibdrv_PutImage a little.
parent
de213f2c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
12 deletions
+9
-12
dc.c
dlls/gdi32/dibdrv/dc.c
+9
-12
No files found.
dlls/gdi32/dibdrv/dc.c
View file @
2e908e06
...
...
@@ -490,7 +490,7 @@ static DWORD dibdrv_PutImage( PHYSDEV dev, HBITMAP hbitmap, HRGN clip, BITMAPINF
DWORD
ret
;
POINT
origin
;
dib_info
src_dib
;
HRGN
total_clip
,
saved_clip
=
NULL
;
HRGN
saved_clip
=
NULL
;
dibdrv_physdev
*
pdev
=
NULL
;
const
WINEREGION
*
clip_data
;
int
i
,
rop2
;
...
...
@@ -518,6 +518,7 @@ static DWORD dibdrv_PutImage( PHYSDEV dev, HBITMAP hbitmap, HRGN clip, BITMAPINF
goto
done
;
}
dib
=
&
stand_alone
;
rop
=
SRCCOPY
;
}
else
{
...
...
@@ -544,22 +545,18 @@ static DWORD dibdrv_PutImage( PHYSDEV dev, HBITMAP hbitmap, HRGN clip, BITMAPINF
origin
.
x
=
src
->
visrect
.
left
;
origin
.
y
=
src
->
visrect
.
top
;
if
(
hbitmap
)
{
total_clip
=
clip
;
rop2
=
R2_COPYPEN
;
}
else
if
(
!
hbitmap
)
{
if
(
clip
)
saved_clip
=
add_extra_clipping_region
(
pdev
,
clip
);
total_clip
=
pdev
->
clip
;
rop2
=
((
rop
>>
16
)
&
0xf
)
+
1
;
clip
=
pdev
->
clip
;
}
if
(
total_clip
==
NULL
)
dib
->
funcs
->
copy_rect
(
dib
,
&
dst
->
visrect
,
&
src_dib
,
&
origin
,
rop2
);
rop2
=
((
rop
>>
16
)
&
0xf
)
+
1
;
if
(
clip
==
NULL
)
dib
->
funcs
->
copy_rect
(
dib
,
&
dst
->
visrect
,
&
src_dib
,
&
origin
,
rop2
);
else
{
clip_data
=
get_wine_region
(
total_
clip
);
clip_data
=
get_wine_region
(
clip
);
for
(
i
=
0
;
i
<
clip_data
->
numRects
;
i
++
)
{
RECT
clipped_rect
;
...
...
@@ -571,7 +568,7 @@ static DWORD dibdrv_PutImage( PHYSDEV dev, HBITMAP hbitmap, HRGN clip, BITMAPINF
dib
->
funcs
->
copy_rect
(
dib
,
&
clipped_rect
,
&
src_dib
,
&
origin
,
rop2
);
}
}
release_wine_region
(
total_
clip
);
release_wine_region
(
clip
);
}
ret
=
ERROR_SUCCESS
;
...
...
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