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
87e878a6
Commit
87e878a6
authored
Aug 19, 2005
by
Felix Nawothnig
Committed by
Alexandre Julliard
Aug 19, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix GetDIBits to retrieve RGB 555 as 16bit BI_RGB and RGB 565 as 16bit
BI_BITFIELDS.
parent
ad537671
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
2 deletions
+20
-2
dib.c
dlls/gdi/dib.c
+20
-2
No files found.
dlls/gdi/dib.c
View file @
87e878a6
...
@@ -960,12 +960,30 @@ INT WINAPI GetDIBits(
...
@@ -960,12 +960,30 @@ INT WINAPI GetDIBits(
info
->
bmiHeader
.
biWidth
=
bmp
->
bitmap
.
bmWidth
;
info
->
bmiHeader
.
biWidth
=
bmp
->
bitmap
.
bmWidth
;
info
->
bmiHeader
.
biHeight
=
bmp
->
bitmap
.
bmHeight
;
info
->
bmiHeader
.
biHeight
=
bmp
->
bitmap
.
bmHeight
;
info
->
bmiHeader
.
biPlanes
=
1
;
info
->
bmiHeader
.
biPlanes
=
1
;
info
->
bmiHeader
.
biBitCount
=
bmp
->
bitmap
.
bmBitsPixel
;
info
->
bmiHeader
.
biSizeImage
=
info
->
bmiHeader
.
biSizeImage
=
DIB_GetDIBImageBytes
(
bmp
->
bitmap
.
bmWidth
,
DIB_GetDIBImageBytes
(
bmp
->
bitmap
.
bmWidth
,
bmp
->
bitmap
.
bmHeight
,
bmp
->
bitmap
.
bmHeight
,
bmp
->
bitmap
.
bmBitsPixel
);
bmp
->
bitmap
.
bmBitsPixel
);
info
->
bmiHeader
.
biCompression
=
0
;
switch
(
bmp
->
bitmap
.
bmBitsPixel
)
{
case
15
:
info
->
bmiHeader
.
biBitCount
=
16
;
info
->
bmiHeader
.
biCompression
=
BI_RGB
;
break
;
case
16
:
info
->
bmiHeader
.
biBitCount
=
16
;
info
->
bmiHeader
.
biCompression
=
BI_BITFIELDS
;
((
PDWORD
)
info
->
bmiColors
)[
0
]
=
0xf800
;
((
PDWORD
)
info
->
bmiColors
)[
1
]
=
0x07e0
;
((
PDWORD
)
info
->
bmiColors
)[
2
]
=
0x001f
;
break
;
default:
info
->
bmiHeader
.
biBitCount
=
bmp
->
bitmap
.
bmBitsPixel
;
info
->
bmiHeader
.
biCompression
=
BI_RGB
;
break
;
}
info
->
bmiHeader
.
biXPelsPerMeter
=
0
;
info
->
bmiHeader
.
biXPelsPerMeter
=
0
;
info
->
bmiHeader
.
biYPelsPerMeter
=
0
;
info
->
bmiHeader
.
biYPelsPerMeter
=
0
;
info
->
bmiHeader
.
biClrUsed
=
0
;
info
->
bmiHeader
.
biClrUsed
=
0
;
...
...
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