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
673dd735
Commit
673dd735
authored
Apr 12, 2011
by
Huw Davies
Committed by
Alexandre Julliard
Apr 12, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdi32: Don't use the bitfields for the BI_RGB case.
parent
b295b536
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
2 deletions
+13
-2
dib.c
dlls/gdi32/dib.c
+13
-2
No files found.
dlls/gdi32/dib.c
View file @
673dd735
...
...
@@ -774,7 +774,17 @@ INT WINAPI GetDIBits(
case
16
:
if
(
info
->
bmiHeader
.
biCompression
==
BI_BITFIELDS
)
{
if
(
bmp
->
dib
)
memcpy
(
info
->
bmiColors
,
bmp
->
dib
->
dsBitfields
,
3
*
sizeof
(
DWORD
)
);
if
(
bmp
->
dib
)
{
if
(
bmp
->
dib
->
dsBmih
.
biCompression
==
BI_BITFIELDS
)
memcpy
(
info
->
bmiColors
,
bmp
->
dib
->
dsBitfields
,
3
*
sizeof
(
DWORD
)
);
else
{
((
PDWORD
)
info
->
bmiColors
)[
0
]
=
0x7c00
;
((
PDWORD
)
info
->
bmiColors
)[
1
]
=
0x03e0
;
((
PDWORD
)
info
->
bmiColors
)[
2
]
=
0x001f
;
}
}
else
{
((
PDWORD
)
info
->
bmiColors
)[
0
]
=
0xf800
;
...
...
@@ -788,7 +798,8 @@ INT WINAPI GetDIBits(
case
32
:
if
(
info
->
bmiHeader
.
biCompression
==
BI_BITFIELDS
)
{
if
(
bmp
->
dib
)
memcpy
(
info
->
bmiColors
,
bmp
->
dib
->
dsBitfields
,
3
*
sizeof
(
DWORD
)
);
if
(
bmp
->
dib
&&
bmp
->
dib
->
dsBmih
.
biCompression
==
BI_BITFIELDS
)
memcpy
(
info
->
bmiColors
,
bmp
->
dib
->
dsBitfields
,
3
*
sizeof
(
DWORD
)
);
else
{
((
PDWORD
)
info
->
bmiColors
)[
0
]
=
0xff0000
;
...
...
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