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
21c3e79e
Commit
21c3e79e
authored
Feb 28, 2009
by
Eric Pouech
Committed by
Alexandre Julliard
Mar 02, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winex11: Correctly pad 1 bpp DDB's lines with 0 values.
parent
66bd3d42
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
+4
-2
bitmap.c
dlls/gdi32/tests/bitmap.c
+0
-1
dib.c
dlls/winex11.drv/dib.c
+4
-1
No files found.
dlls/gdi32/tests/bitmap.c
View file @
21c3e79e
...
...
@@ -1580,7 +1580,6 @@ static void test_GetDIBits(void)
}
/* returned bits are DWORD aligned and upside down */
todo_wine
ok
(
!
memcmp
(
buf
,
dib_bits_1
,
sizeof
(
dib_bits_1
)),
"DIB bits don't match
\n
"
);
/* Test the palette indices */
...
...
dlls/winex11.drv/dib.c
View file @
21c3e79e
...
...
@@ -618,8 +618,11 @@ static void X11DRV_DIB_GetImageBits_1( int lines, BYTE *dstbits,
}
}
if
((
width
&
7
)
!=
0
)
{
*
dstbyte
=
dstval
;
*
dstbyte
++
=
dstval
;
}
/* pad with 0 to DWORD alignment */
for
(
x
=
(
x
+
7
)
&~
7
;
x
<
((
width
+
31
)
&
~
31
);
x
+=
8
)
*
dstbyte
++
=
0
;
dstbits
+=
linebytes
;
}
}
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