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
dee464c4
Commit
dee464c4
authored
Sep 14, 1999
by
Karl Lessard
Committed by
Alexandre Julliard
Sep 14, 1999
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed GetDIBits problems.
parent
32b4325d
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
3 deletions
+5
-3
dib.c
graphics/x11drv/dib.c
+0
-0
x11drv.h
include/x11drv.h
+2
-1
dib.c
objects/dib.c
+3
-2
No files found.
graphics/x11drv/dib.c
View file @
dee464c4
This diff is collapsed.
Click to expand it.
include/x11drv.h
View file @
dee464c4
...
...
@@ -224,12 +224,13 @@ typedef struct
struct
tagDC
*
dc
;
LPCVOID
bits
;
XImage
*
image
;
PALETTEENTRY
*
palentry
;
int
lines
;
DWORD
infoWidth
;
WORD
depth
;
WORD
infoBpp
;
WORD
compression
;
int
*
colorMap
;
RGBQUAD
*
colorMap
;
int
nColorMap
;
Drawable
drawable
;
GC
gc
;
...
...
objects/dib.c
View file @
dee464c4
...
...
@@ -535,7 +535,7 @@ INT WINAPI GetDIBits(
if
(
bits
&&
lines
)
{
/* If the bitmap object already have a dib section that contains image data, get the bits from it*/
if
(
bmp
->
dib
->
dsBm
.
bmBits
&&
bmp
->
dib
->
dsBm
.
bmBitsPixel
>=
16
&&
info
->
bmiHeader
.
biBitCount
>=
16
)
if
(
bmp
->
dib
&&
bmp
->
dib
->
dsBm
.
bmBitsPixel
>=
15
&&
info
->
bmiHeader
.
biBitCount
>=
15
)
{
/*FIXME: Only RGB dibs supported for now */
int
srcwidth
=
bmp
->
dib
->
dsBm
.
bmWidth
,
srcwidthb
=
bmp
->
dib
->
dsBm
.
bmWidthBytes
;
...
...
@@ -545,12 +545,13 @@ INT WINAPI GetDIBits(
if
((
info
->
bmiHeader
.
biHeight
<
0
)
^
(
bmp
->
dib
->
dsBmih
.
biHeight
<
0
))
{
dbits
=
bits
+
(
dstwidthb
*
lines
);
dbits
=
bits
+
(
dstwidthb
*
(
lines
-
1
)
);
dstwidthb
=
-
dstwidthb
;
}
switch
(
info
->
bmiHeader
.
biBitCount
)
{
case
15
:
case
16
:
/* 16 bpp dstDIB */
{
LPWORD
dstbits
=
(
LPWORD
)
dbits
;
...
...
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