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
50c9ff03
Commit
50c9ff03
authored
Nov 12, 2003
by
Huw Davies
Committed by
Alexandre Julliard
Nov 12, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix some weird logic in ImageList_Write.
parent
ac24a0a6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
5 deletions
+6
-5
imagelist.c
dlls/comctl32/imagelist.c
+6
-5
No files found.
dlls/comctl32/imagelist.c
View file @
50c9ff03
...
...
@@ -450,7 +450,7 @@ BOOL WINAPI
ImageList_Copy
(
HIMAGELIST
himlDst
,
INT
iDst
,
HIMAGELIST
himlSrc
,
INT
iSrc
,
UINT
uFlags
)
{
TRACE
(
"
iDst=%d iSrc=%d
\n
"
,
iDst
,
iSrc
);
TRACE
(
"
himlDst=%p iDst=%d himlSrc=%p iSrc=%d
\n
"
,
himlDst
,
iDst
,
himlSrc
,
iSrc
);
if
(
!
is_valid
(
himlSrc
)
||
!
is_valid
(
himlDst
))
return
FALSE
;
...
...
@@ -2650,8 +2650,8 @@ _write_bitmap(HBITMAP hBitmap, LPSTREAM pstm, int cx, int cy)
/* XXX is this always correct? */
icount
=
bm
.
bmWidth
/
cx
;
nwidth
=
cx
<<
2
;
nheight
=
cy
*
((
icount
+
3
)
>>
2
)
;
nwidth
=
cx
;
nheight
=
cy
*
icount
;
bitCount
=
bm
.
bmBitsPixel
==
1
?
1
:
24
;
sizeImage
=
((((
bm
.
bmWidth
*
bitCount
)
+
31
)
&
~
31
)
>>
3
)
*
bm
.
bmHeight
;
...
...
@@ -2682,13 +2682,13 @@ _write_bitmap(HBITMAP hBitmap, LPSTREAM pstm, int cx, int cy)
bmih
->
biPlanes
=
1
;
bmih
->
biBitCount
=
bitCount
;
bmih
->
biCompression
=
BI_RGB
;
bmih
->
biSizeImage
=
n
sizeImage
;
bmih
->
biSizeImage
=
sizeImage
;
bmih
->
biXPelsPerMeter
=
0
;
bmih
->
biYPelsPerMeter
=
0
;
bmih
->
biClrUsed
=
0
;
bmih
->
biClrImportant
=
0
;
lpBitsOrg
=
(
LPBYTE
)
LocalAlloc
(
LMEM_ZEROINIT
,
n
sizeImage
);
lpBitsOrg
=
(
LPBYTE
)
LocalAlloc
(
LMEM_ZEROINIT
,
sizeImage
);
if
(
!
GetDIBits
(
xdc
,
hBitmap
,
0
,
bm
.
bmHeight
,
lpBitsOrg
,
(
BITMAPINFO
*
)
bmih
,
DIB_RGB_COLORS
))
goto
failed
;
...
...
@@ -2706,6 +2706,7 @@ _write_bitmap(HBITMAP hBitmap, LPSTREAM pstm, int cx, int cy)
bmih
->
biWidth
=
nwidth
;
bmih
->
biHeight
=
nheight
;
bmih
->
biSizeImage
=
nsizeImage
;
if
(
bitCount
==
1
)
{
/* Hack. */
...
...
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