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
65ad3f25
Commit
65ad3f25
authored
Dec 01, 2005
by
Oldrich Jedlicka
Committed by
Alexandre Julliard
Dec 01, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix for the monochrome DIB with inverted colors.
parent
7dd57169
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
3 deletions
+10
-3
dib.c
dlls/x11drv/dib.c
+10
-3
No files found.
dlls/x11drv/dib.c
View file @
65ad3f25
...
...
@@ -896,19 +896,26 @@ static void X11DRV_DIB_GetImageBits_1( int lines, BYTE *dstbits,
notsupported:
{
BYTE
*
dstbyte
;
BYTE
neg
=
0
;
unsigned
long
white
=
(
1
<<
bmpImage
->
bits_per_pixel
)
-
1
;
/* ==== any bmp format -> pal 1 dib ==== */
WARN
(
"from unknown %d bit bitmap (%lx,%lx,%lx) to 1 bit DIB
\n
"
,
if
((
unsigned
)
colors
[
0
].
rgbRed
+
colors
[
0
].
rgbGreen
+
colors
[
0
].
rgbBlue
>=
(
unsigned
)
colors
[
1
].
rgbRed
+
colors
[
1
].
rgbGreen
+
colors
[
1
].
rgbBlue
)
neg
=
1
;
WARN
(
"from unknown %d bit bitmap (%lx,%lx,%lx) to 1 bit DIB, "
"%s color mapping
\n
"
,
bmpImage
->
bits_per_pixel
,
bmpImage
->
red_mask
,
bmpImage
->
green_mask
,
bmpImage
->
blue_mask
);
bmpImage
->
green_mask
,
bmpImage
->
blue_mask
,
neg
?
"negative"
:
"direct"
);
for
(
h
=
lines
-
1
;
h
>=
0
;
h
--
)
{
BYTE
dstval
;
dstbyte
=
dstbits
;
dstval
=
0
;
for
(
x
=
0
;
x
<
width
;
x
++
)
{
dstval
|=
(
XGetPixel
(
bmpImage
,
x
,
h
)
>=
white
)
<<
(
7
-
(
x
&
7
));
dstval
|=
(
(
XGetPixel
(
bmpImage
,
x
,
h
)
>=
white
)
^
neg
)
<<
(
7
-
(
x
&
7
));
if
((
x
&
7
)
==
7
)
{
*
dstbyte
++=
dstval
;
dstval
=
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