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
210b5467
Commit
210b5467
authored
Mar 30, 2004
by
Huw Davies
Committed by
Alexandre Julliard
Mar 30, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
We don't support GetDIBits with BI_RLE4/8, so for now return an
uncompressed bitmap if the bits buffer is large enough.
parent
fddf5ce1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
5 deletions
+12
-5
dib.c
dlls/x11drv/dib.c
+12
-5
No files found.
dlls/x11drv/dib.c
View file @
210b5467
...
...
@@ -72,6 +72,7 @@ typedef struct
DWORD
bMask
;
BOOL
useShm
;
int
dibpitch
;
DWORD
sizeImage
;
}
X11DRV_DIB_IMAGEBITS_DESCR
;
...
...
@@ -3516,19 +3517,22 @@ static int X11DRV_DIB_GetImageBits( const X11DRV_DIB_IMAGEBITS_DESCR *descr )
break
;
case
4
:
if
(
descr
->
compression
)
if
(
descr
->
compression
)
{
FIXME
(
"Compression not yet supported!
\n
"
);
else
if
(
descr
->
sizeImage
<
X11DRV_DIB_GetDIBWidthBytes
(
descr
->
infoWidth
,
4
)
*
abs
(
descr
->
lines
))
break
;
}
X11DRV_DIB_GetImageBits_4
(
descr
->
lines
,(
LPVOID
)
descr
->
bits
,
descr
->
infoWidth
,
descr
->
width
,
descr
->
colorMap
,
descr
->
palentry
,
bmpImage
,
descr
->
dibpitch
);
break
;
case
8
:
if
(
descr
->
compression
)
if
(
descr
->
compression
)
{
FIXME
(
"Compression not yet supported!
\n
"
);
else
if
(
descr
->
sizeImage
<
X11DRV_DIB_GetDIBWidthBytes
(
descr
->
infoWidth
,
8
)
*
abs
(
descr
->
lines
))
break
;
}
X11DRV_DIB_GetImageBits_8
(
descr
->
lines
,
(
LPVOID
)
descr
->
bits
,
descr
->
infoWidth
,
descr
->
width
,
descr
->
colorMap
,
descr
->
palentry
,
...
...
@@ -3875,6 +3879,7 @@ INT X11DRV_GetDIBits( X11DRV_PDEVICE *physDev, HBITMAP hbitmap, UINT startscan,
descr
.
xDest
=
0
;
descr
.
yDest
=
0
;
descr
.
xSrc
=
0
;
descr
.
sizeImage
=
info
->
bmiHeader
.
biSizeImage
;
if
(
descr
.
lines
>
0
)
{
...
...
@@ -4001,6 +4006,8 @@ static void X11DRV_DIB_DoCopyDIBSection(BITMAPOBJ *bmp, BOOL toDIB,
descr
.
yDest
=
yDest
;
descr
.
width
=
width
;
descr
.
height
=
height
;
descr
.
sizeImage
=
0
;
#ifdef HAVE_LIBXXSHM
descr
.
useShm
=
(
dib
->
shminfo
.
shmid
!=
-
1
);
#else
...
...
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