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
36f2b096
Commit
36f2b096
authored
Oct 15, 2012
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdi32: Always return the full DIB surface in GetImage and adjust coordinates accordingly.
Based on a patch by Ken Thomases.
parent
710858ab
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
6 deletions
+5
-6
bitblt.c
dlls/gdi32/dibdrv/bitblt.c
+5
-6
No files found.
dlls/gdi32/dibdrv/bitblt.c
View file @
36f2b096
...
...
@@ -816,7 +816,7 @@ static DWORD get_image_dib_info( dib_info *dib, BITMAPINFO *info,
info
->
bmiHeader
.
biYPelsPerMeter
=
0
;
info
->
bmiHeader
.
biClrImportant
=
0
;
info
->
bmiHeader
.
biWidth
=
dib
->
width
;
info
->
bmiHeader
.
biHeight
=
dib
->
height
-
dib
->
rect
.
top
;
info
->
bmiHeader
.
biHeight
=
dib
->
height
;
info
->
bmiHeader
.
biBitCount
=
dib
->
bit_count
;
info
->
bmiHeader
.
biSizeImage
=
info
->
bmiHeader
.
biHeight
*
abs
(
dib
->
stride
);
if
(
dib
->
stride
>
0
)
info
->
bmiHeader
.
biHeight
=
-
info
->
bmiHeader
.
biHeight
;
...
...
@@ -825,14 +825,13 @@ static DWORD get_image_dib_info( dib_info *dib, BITMAPINFO *info,
if
(
bits
)
{
if
(
dib
->
stride
<
0
)
bits
->
ptr
=
(
char
*
)
dib
->
bits
.
ptr
+
(
dib
->
rect
.
bottom
-
1
)
*
dib
->
stride
;
else
bits
->
ptr
=
(
char
*
)
dib
->
bits
.
ptr
+
dib
->
rect
.
top
*
dib
->
stride
;
bits
->
ptr
=
dib
->
bits
.
ptr
;
bits
->
is_copy
=
FALSE
;
bits
->
free
=
NULL
;
if
(
dib
->
stride
<
0
)
bits
->
ptr
=
(
char
*
)
bits
->
ptr
+
(
dib
->
height
-
1
)
*
dib
->
stride
;
src
->
x
+=
dib
->
rect
.
left
;
offset_rect
(
&
src
->
visrect
,
dib
->
rect
.
left
,
0
);
src
->
y
+=
dib
->
rect
.
top
;
offset_rect
(
&
src
->
visrect
,
dib
->
rect
.
left
,
dib
->
rect
.
top
);
}
return
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