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
4b34a452
Commit
4b34a452
authored
Apr 11, 2000
by
Marcus Meissner
Committed by
Alexandre Julliard
Apr 11, 2000
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Only copy dstwidth*3 bytes in the 24bit case.
parent
81a84bb3
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
dib.c
graphics/x11drv/dib.c
+5
-5
No files found.
graphics/x11drv/dib.c
View file @
4b34a452
...
...
@@ -1699,15 +1699,15 @@ static void X11DRV_DIB_SetImageBits_24( int lines, const BYTE *srcbits,
case
24
:
{
if
(
bmpImage
->
bits_per_pixel
==
24
)
{
int
tocopy
=
linebytes
;
int
dstlinebytes
=
linebytes
;
BYTE
*
dstpixel
;
BYTE
*
ptr
=
(
BYTE
*
)(
srcbits
+
left
*
3
);
if
(
tocopy
<
0
)
tocopy
=
-
tocopy
;
dstpixel
=
bmpImage
->
data
+
lines
*
tocopy
+
left
*
3
;
if
(
dstlinebytes
<
0
)
dstlinebytes
=
-
dstlinebytes
;
dstpixel
=
bmpImage
->
data
+
lines
*
dstlinebytes
+
left
*
3
;
for
(
h
=
lines
;
h
--
;
)
{
dstpixel
-=
tocopy
;
memcpy
(
dstpixel
,
ptr
,
tocopy
);
dstpixel
-=
dstlinebytes
;
memcpy
(
dstpixel
,
ptr
,
dstwidth
*
3
);
ptr
+=
linebytes
;
}
break
;
...
...
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