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
63ec7daa
Commit
63ec7daa
authored
Jun 12, 1999
by
Uwe Bonnes
Committed by
Alexandre Julliard
Jun 12, 1999
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
X11DRV_DIB_SetImageBits_24/32: Fix the case for bits_per_pixel == 32
and negative lines.
parent
9e61c1cc
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
dib.c
graphics/x11drv/dib.c
+2
-2
No files found.
graphics/x11drv/dib.c
View file @
63ec7daa
...
...
@@ -936,7 +936,7 @@ static void X11DRV_DIB_SetImageBits_24( int lines, const BYTE *srcbits,
}
}
else
{
lines
=
-
lines
;
imageBits
=
(
BYTE
*
)(
bmpImage
->
data
+
(
lines
-
1
)
*
bmpImage
->
bytes_per_line
);
imageBits
=
(
BYTE
*
)(
bmpImage
->
data
);
for
(
h
=
0
;
h
<
lines
;
h
++
)
{
for
(
x
=
left
;
x
<
dstwidth
;
x
++
,
bits
+=
3
)
{
imageBits
[(
x
<<
2
)
+
indA
]
=
0x00
;
...
...
@@ -1094,7 +1094,7 @@ static void X11DRV_DIB_SetImageBits_32( int lines, const BYTE *srcbits,
}
}
else
{
lines
=
-
lines
;
imageBits
=
(
BYTE
*
)(
bmpImage
->
data
+
(
lines
-
1
)
*
bmpImage
->
bytes_per_line
);
imageBits
=
(
BYTE
*
)(
bmpImage
->
data
);
for
(
h
=
0
;
h
<
lines
;
h
++
)
{
for
(
x
=
left
;
x
<
dstwidth
;
x
++
,
bits
+=
4
)
{
imageBits
[(
x
<<
2
)
+
indA
]
=
0x00
;
...
...
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