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
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
15 deletions
+22
-15
dib.c
dlls/x11drv/dib.c
+22
-15
No files found.
dlls/x11drv/dib.c
View file @
210b5467
...
@@ -72,6 +72,7 @@ typedef struct
...
@@ -72,6 +72,7 @@ typedef struct
DWORD
bMask
;
DWORD
bMask
;
BOOL
useShm
;
BOOL
useShm
;
int
dibpitch
;
int
dibpitch
;
DWORD
sizeImage
;
}
X11DRV_DIB_IMAGEBITS_DESCR
;
}
X11DRV_DIB_IMAGEBITS_DESCR
;
...
@@ -3516,24 +3517,27 @@ static int X11DRV_DIB_GetImageBits( const X11DRV_DIB_IMAGEBITS_DESCR *descr )
...
@@ -3516,24 +3517,27 @@ static int X11DRV_DIB_GetImageBits( const X11DRV_DIB_IMAGEBITS_DESCR *descr )
break
;
break
;
case
4
:
case
4
:
if
(
descr
->
compression
)
if
(
descr
->
compression
)
{
FIXME
(
"Compression not yet supported!
\n
"
);
FIXME
(
"Compression not yet supported!
\n
"
);
else
if
(
descr
->
sizeImage
<
X11DRV_DIB_GetDIBWidthBytes
(
descr
->
infoWidth
,
4
)
*
abs
(
descr
->
lines
))
X11DRV_DIB_GetImageBits_4
(
descr
->
lines
,(
LPVOID
)
descr
->
bits
,
break
;
descr
->
infoWidth
,
descr
->
width
,
}
descr
->
colorMap
,
descr
->
palentry
,
X11DRV_DIB_GetImageBits_4
(
descr
->
lines
,(
LPVOID
)
descr
->
bits
,
bmpImage
,
descr
->
dibpitch
);
descr
->
infoWidth
,
descr
->
width
,
break
;
descr
->
colorMap
,
descr
->
palentry
,
bmpImage
,
descr
->
dibpitch
);
break
;
case
8
:
case
8
:
if
(
descr
->
compression
)
if
(
descr
->
compression
)
{
FIXME
(
"Compression not yet supported!
\n
"
);
FIXME
(
"Compression not yet supported!
\n
"
);
else
if
(
descr
->
sizeImage
<
X11DRV_DIB_GetDIBWidthBytes
(
descr
->
infoWidth
,
8
)
*
abs
(
descr
->
lines
))
X11DRV_DIB_GetImageBits_8
(
descr
->
lines
,
(
LPVOID
)
descr
->
bits
,
break
;
descr
->
infoWidth
,
descr
->
width
,
}
descr
->
colorMap
,
descr
->
palentry
,
X11DRV_DIB_GetImageBits_8
(
descr
->
lines
,
(
LPVOID
)
descr
->
bits
,
bmpImage
,
descr
->
dibpitch
);
descr
->
infoWidth
,
descr
->
width
,
break
;
descr
->
colorMap
,
descr
->
palentry
,
bmpImage
,
descr
->
dibpitch
);
break
;
case
15
:
case
15
:
case
16
:
case
16
:
X11DRV_DIB_GetImageBits_16
(
descr
->
lines
,
(
LPVOID
)
descr
->
bits
,
X11DRV_DIB_GetImageBits_16
(
descr
->
lines
,
(
LPVOID
)
descr
->
bits
,
...
@@ -3875,6 +3879,7 @@ INT X11DRV_GetDIBits( X11DRV_PDEVICE *physDev, HBITMAP hbitmap, UINT startscan,
...
@@ -3875,6 +3879,7 @@ INT X11DRV_GetDIBits( X11DRV_PDEVICE *physDev, HBITMAP hbitmap, UINT startscan,
descr
.
xDest
=
0
;
descr
.
xDest
=
0
;
descr
.
yDest
=
0
;
descr
.
yDest
=
0
;
descr
.
xSrc
=
0
;
descr
.
xSrc
=
0
;
descr
.
sizeImage
=
info
->
bmiHeader
.
biSizeImage
;
if
(
descr
.
lines
>
0
)
if
(
descr
.
lines
>
0
)
{
{
...
@@ -4001,6 +4006,8 @@ static void X11DRV_DIB_DoCopyDIBSection(BITMAPOBJ *bmp, BOOL toDIB,
...
@@ -4001,6 +4006,8 @@ static void X11DRV_DIB_DoCopyDIBSection(BITMAPOBJ *bmp, BOOL toDIB,
descr
.
yDest
=
yDest
;
descr
.
yDest
=
yDest
;
descr
.
width
=
width
;
descr
.
width
=
width
;
descr
.
height
=
height
;
descr
.
height
=
height
;
descr
.
sizeImage
=
0
;
#ifdef HAVE_LIBXXSHM
#ifdef HAVE_LIBXXSHM
descr
.
useShm
=
(
dib
->
shminfo
.
shmid
!=
-
1
);
descr
.
useShm
=
(
dib
->
shminfo
.
shmid
!=
-
1
);
#else
#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