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
6e387f34
Commit
6e387f34
authored
Mar 26, 2008
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdi32: Store the return value separately in StretchDIBits instead of overwriting heightSrc.
parent
12ae8ff8
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
6 deletions
+7
-6
dib.c
dlls/gdi32/dib.c
+7
-6
No files found.
dlls/gdi32/dib.c
View file @
6e387f34
...
...
@@ -188,16 +188,17 @@ INT WINAPI StretchDIBits(HDC hdc, INT xDst, INT yDst, INT widthDst,
const
BITMAPINFO
*
info
,
UINT
wUsage
,
DWORD
dwRop
)
{
DC
*
dc
;
INT
ret
;
if
(
!
bits
||
!
info
)
return
0
;
if
(
!
(
dc
=
get_dc_ptr
(
hdc
)))
return
FALSE
;
if
(
!
(
dc
=
get_dc_ptr
(
hdc
)))
return
0
;
if
(
dc
->
funcs
->
pStretchDIBits
)
{
update_dc
(
dc
);
heightSrc
=
dc
->
funcs
->
pStretchDIBits
(
dc
->
physDev
,
xDst
,
yDst
,
widthDst
,
ret
=
dc
->
funcs
->
pStretchDIBits
(
dc
->
physDev
,
xDst
,
yDst
,
widthDst
,
heightDst
,
xSrc
,
ySrc
,
widthSrc
,
heightSrc
,
bits
,
info
,
wUsage
,
dwRop
);
release_dc_ptr
(
dc
);
...
...
@@ -248,7 +249,7 @@ INT WINAPI StretchDIBits(HDC hdc, INT xDst, INT yDst, INT widthDst,
{
/* fast path */
TRACE
(
"using fast path
\n
"
);
heightSrc
=
SetDIBits
(
hdc
,
hBitmap
,
0
,
height
,
bits
,
info
,
wUsage
);
ret
=
SetDIBits
(
hdc
,
hBitmap
,
0
,
height
,
bits
,
info
,
wUsage
);
}
else
{
...
...
@@ -290,11 +291,11 @@ INT WINAPI StretchDIBits(HDC hdc, INT xDst, INT yDst, INT widthDst,
dwRop
);
}
heightSrc
=
SetDIBits
(
hdcMem
,
hBitmap
,
0
,
height
,
bits
,
info
,
wUsage
);
ret
=
SetDIBits
(
hdcMem
,
hBitmap
,
0
,
height
,
bits
,
info
,
wUsage
);
/* Origin for DIBitmap may be bottom left (positive biHeight) or top
left (negative biHeight) */
if
(
heightSrc
)
StretchBlt
(
hdc
,
xDst
,
yDst
,
widthDst
,
heightDst
,
if
(
ret
)
StretchBlt
(
hdc
,
xDst
,
yDst
,
widthDst
,
heightDst
,
hdcMem
,
xSrc
,
abs
(
height
)
-
heightSrc
-
ySrc
,
widthSrc
,
heightSrc
,
dwRop
);
if
(
hpal
)
...
...
@@ -304,7 +305,7 @@ INT WINAPI StretchDIBits(HDC hdc, INT xDst, INT yDst, INT widthDst,
DeleteObject
(
hBitmap
);
}
}
return
heightSrc
;
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