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
729eaa69
Commit
729eaa69
authored
Feb 07, 2006
by
Dmitry Timoshkov
Committed by
Alexandre Julliard
Feb 07, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
x11drv: Copy the whole image at once if appropriate.
parent
2cba6e32
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
27 additions
and
3 deletions
+27
-3
dib_convert.c
dlls/x11drv/dib_convert.c
+27
-3
No files found.
dlls/x11drv/dib_convert.c
View file @
729eaa69
...
...
@@ -75,8 +75,16 @@ static void convert_5x5_asis(int width, int height,
{
int
y
;
width
*=
2
;
if
(
srclinebytes
==
dstlinebytes
&&
srclinebytes
==
width
)
{
memcpy
(
dstbits
,
srcbits
,
height
*
width
);
return
;
}
for
(
y
=
0
;
y
<
height
;
y
++
)
{
memcpy
(
dstbits
,
srcbits
,
width
*
2
);
memcpy
(
dstbits
,
srcbits
,
width
);
srcbits
=
(
const
char
*
)
srcbits
+
srclinebytes
;
dstbits
=
(
char
*
)
dstbits
+
dstlinebytes
;
}
...
...
@@ -563,8 +571,16 @@ static void convert_888_asis(int width, int height,
{
int
y
;
width
*=
3
;
if
(
srclinebytes
==
dstlinebytes
&&
srclinebytes
==
width
)
{
memcpy
(
dstbits
,
srcbits
,
height
*
width
);
return
;
}
for
(
y
=
0
;
y
<
height
;
y
++
)
{
memcpy
(
dstbits
,
srcbits
,
width
*
3
);
memcpy
(
dstbits
,
srcbits
,
width
);
srcbits
=
(
const
char
*
)
srcbits
+
srclinebytes
;
dstbits
=
(
char
*
)
dstbits
+
dstlinebytes
;
}
...
...
@@ -953,8 +969,16 @@ static void convert_0888_asis(int width, int height,
{
int
y
;
width
*=
4
;
if
(
srclinebytes
==
dstlinebytes
&&
srclinebytes
==
width
)
{
memcpy
(
dstbits
,
srcbits
,
height
*
width
);
return
;
}
for
(
y
=
0
;
y
<
height
;
y
++
)
{
memcpy
(
dstbits
,
srcbits
,
width
*
4
);
memcpy
(
dstbits
,
srcbits
,
width
);
srcbits
=
(
const
char
*
)
srcbits
+
srclinebytes
;
dstbits
=
(
char
*
)
dstbits
+
dstlinebytes
;
}
...
...
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