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
035f34c9
Commit
035f34c9
authored
Jul 12, 2004
by
Marcus Meissner
Committed by
Alexandre Julliard
Jul 12, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Replaced lvalue casts / postincrement mixes.
parent
ed9d91e6
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
4 deletions
+8
-4
dib_convert.c
dlls/x11drv/dib_convert.c
+4
-2
dib_src_swap.c
dlls/x11drv/dib_src_swap.c
+4
-2
No files found.
dlls/x11drv/dib_convert.c
View file @
035f34c9
...
...
@@ -1188,7 +1188,8 @@ static void convert_0888_to_888_asis(int width, int height,
for
(
x
=
0
;
x
<
oddwidth
;
x
++
)
{
DWORD
srcval
;
srcval
=*
srcpixel
++
;
*
((
WORD
*
)
dstbyte
)
++=
srcval
;
/* h, g */
*
((
WORD
*
)
dstbyte
)
=
srcval
;
/* h, g */
dstbyte
+=
sizeof
(
WORD
);
*
dstbyte
++=
srcval
>>
16
;
/* l */
}
srcbits
=
(
char
*
)
srcbits
+
srclinebytes
;
...
...
@@ -1239,8 +1240,9 @@ static void convert_0888_to_888_reverse(int width, int height,
for
(
x
=
0
;
x
<
oddwidth
;
x
++
)
{
DWORD
srcval
;
srcval
=*
srcpixel
++
;
*
((
WORD
*
)
dstbyte
)
++
=
((
srcval
>>
16
)
&
0x00ff
)
|
/* h */
*
((
WORD
*
)
dstbyte
)
=
((
srcval
>>
16
)
&
0x00ff
)
|
/* h */
(
srcval
&
0xff00
);
/* g */
dstbyte
+=
sizeof
(
WORD
);
*
dstbyte
++=
srcval
;
/* l */
}
srcbits
=
(
char
*
)
srcbits
+
srclinebytes
;
...
...
dlls/x11drv/dib_src_swap.c
View file @
035f34c9
...
...
@@ -1360,7 +1360,8 @@ static void convert_0888_to_888_asis_src_byteswap(int width, int height,
DWORD
srcval
;
srcval
=*
srcpixel
++
;
FLIP_DWORD
(
&
srcval
);
*
((
WORD
*
)
dstbyte
)
++=
srcval
;
/* h, g */
*
((
WORD
*
)
dstbyte
)
=
srcval
;
/* h, g */
dstbyte
+=
sizeof
(
WORD
);
*
dstbyte
++=
srcval
>>
16
;
/* l */
}
srcbits
=
(
char
*
)
srcbits
+
srclinebytes
;
...
...
@@ -1405,7 +1406,8 @@ static void convert_0888_to_888_reverse_src_byteswap(int width, int height,
for
(
x
=
0
;
x
<
oddwidth
;
x
++
)
{
DWORD
srcval
;
srcval
=*
srcpixel
++
;
*
((
WORD
*
)
dstbyte
)
++=
((
srcval
>>
8
)
&
0xffff
);
/* g, h */
*
((
WORD
*
)
dstbyte
)
=
((
srcval
>>
8
)
&
0xffff
);
/* g, h */
dstbyte
+=
sizeof
(
WORD
);
*
dstbyte
++=
srcval
>>
24
;
/* l */
}
srcbits
=
(
char
*
)
srcbits
+
srclinebytes
;
...
...
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