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
7dd3abe6
Commit
7dd3abe6
authored
Oct 15, 2019
by
Alex Henrie
Committed by
Alexandre Julliard
Oct 17, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winex11: Copy icon color table in 256-color mode (Valgrind).
Signed-off-by:
Alex Henrie
<
alexhenrie24@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
293dae8f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
bitblt.c
dlls/winex11.drv/bitblt.c
+2
-1
No files found.
dlls/winex11.drv/bitblt.c
View file @
7dd3abe6
...
...
@@ -924,13 +924,14 @@ static void free_ximage_bits( struct gdi_image_bits *bits )
XFree
(
bits
->
ptr
);
}
/* only for use on sanitized BITMAPINFO structures */
static
inline
int
get_dib_info_size
(
const
BITMAPINFO
*
info
,
UINT
coloruse
)
{
if
(
info
->
bmiHeader
.
biCompression
==
BI_BITFIELDS
)
return
sizeof
(
BITMAPINFOHEADER
)
+
3
*
sizeof
(
DWORD
);
if
(
coloruse
==
DIB_PAL_COLORS
)
return
sizeof
(
BITMAPINFOHEADER
)
+
info
->
bmiHeader
.
biClrUsed
*
sizeof
(
WORD
);
if
(
!
info
->
bmiHeader
.
biClrUsed
&&
info
->
bmiHeader
.
biBitCount
<=
8
)
return
FIELD_OFFSET
(
BITMAPINFO
,
bmiColors
[
1
<<
info
->
bmiHeader
.
biBitCount
]
);
return
FIELD_OFFSET
(
BITMAPINFO
,
bmiColors
[
info
->
bmiHeader
.
biClrUsed
]
);
}
...
...
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