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
602ab961
Commit
602ab961
authored
Oct 23, 2007
by
Francois Gouget
Committed by
Alexandre Julliard
Oct 23, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winex11: Remove some unneeded casts.
parent
06b2da95
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
dib.c
dlls/winex11.drv/dib.c
+6
-6
No files found.
dlls/winex11.drv/dib.c
View file @
602ab961
...
@@ -614,7 +614,7 @@ static void X11DRV_DIB_GetImageBits_1( int lines, BYTE *dstbits,
...
@@ -614,7 +614,7 @@ static void X11DRV_DIB_GetImageBits_1( int lines, BYTE *dstbits,
dstval
=
0
;
dstval
=
0
;
for
(
x
=
0
;
x
<
width
;
x
++
)
{
for
(
x
=
0
;
x
<
width
;
x
++
)
{
PALETTEENTRY
srcval
;
PALETTEENTRY
srcval
;
srcval
=
srccolors
[
(
int
)
*
srcpixel
++
];
srcval
=
srccolors
[
*
srcpixel
++
];
dstval
|=
(
X11DRV_DIB_GetNearestIndex
dstval
|=
(
X11DRV_DIB_GetNearestIndex
(
colors
,
2
,
(
colors
,
2
,
srcval
.
peRed
,
srcval
.
peRed
,
...
@@ -998,7 +998,7 @@ static void X11DRV_DIB_GetImageBits_4( int lines, BYTE *dstbits,
...
@@ -998,7 +998,7 @@ static void X11DRV_DIB_GetImageBits_4( int lines, BYTE *dstbits,
dstval
=
0
;
dstval
=
0
;
for
(
x
=
0
;
x
<
width
;
x
++
)
{
for
(
x
=
0
;
x
<
width
;
x
++
)
{
PALETTEENTRY
srcval
;
PALETTEENTRY
srcval
;
srcval
=
srccolors
[
(
int
)
*
srcpixel
++
];
srcval
=
srccolors
[
*
srcpixel
++
];
dstval
|=
(
X11DRV_DIB_GetNearestIndex
dstval
|=
(
X11DRV_DIB_GetNearestIndex
(
colors
,
16
,
(
colors
,
16
,
srcval
.
peRed
,
srcval
.
peRed
,
...
@@ -1577,7 +1577,7 @@ static void X11DRV_DIB_GetImageBits_8( int lines, BYTE *dstbits,
...
@@ -1577,7 +1577,7 @@ static void X11DRV_DIB_GetImageBits_8( int lines, BYTE *dstbits,
dstbyte
=
dstbits
;
dstbyte
=
dstbits
;
for
(
x
=
0
;
x
<
width
;
x
++
)
{
for
(
x
=
0
;
x
<
width
;
x
++
)
{
PALETTEENTRY
srcval
;
PALETTEENTRY
srcval
;
srcval
=
srccolors
[
(
int
)
*
srcpixel
++
];
srcval
=
srccolors
[
*
srcpixel
++
];
*
dstbyte
++=
X11DRV_DIB_GetNearestIndex
(
colors
,
256
,
*
dstbyte
++=
X11DRV_DIB_GetNearestIndex
(
colors
,
256
,
srcval
.
peRed
,
srcval
.
peRed
,
srcval
.
peGreen
,
srcval
.
peGreen
,
...
@@ -2418,7 +2418,7 @@ static void X11DRV_DIB_GetImageBits_16( int lines, BYTE *dstbits,
...
@@ -2418,7 +2418,7 @@ static void X11DRV_DIB_GetImageBits_16( int lines, BYTE *dstbits,
for
(
x
=
0
;
x
<
width
;
x
++
)
{
for
(
x
=
0
;
x
<
width
;
x
++
)
{
PALETTEENTRY
srcval
;
PALETTEENTRY
srcval
;
DWORD
dstval
;
DWORD
dstval
;
srcval
=
srccolors
[
(
int
)
*
srcpixel
++
];
srcval
=
srccolors
[
*
srcpixel
++
];
dstval
=
((
srcval
.
peRed
<<
rShift
)
&
rDst
)
|
dstval
=
((
srcval
.
peRed
<<
rShift
)
&
rDst
)
|
((
srcval
.
peGreen
<<
gShift
)
&
gDst
)
|
((
srcval
.
peGreen
<<
gShift
)
&
gDst
)
|
((
srcval
.
peBlue
<<
bShift
)
&
bDst
);
((
srcval
.
peBlue
<<
bShift
)
&
bDst
);
...
@@ -2815,7 +2815,7 @@ static void X11DRV_DIB_GetImageBits_24( int lines, BYTE *dstbits,
...
@@ -2815,7 +2815,7 @@ static void X11DRV_DIB_GetImageBits_24( int lines, BYTE *dstbits,
dstbyte
=
dstbits
;
dstbyte
=
dstbits
;
for
(
x
=
0
;
x
<
width
;
x
++
)
{
for
(
x
=
0
;
x
<
width
;
x
++
)
{
PALETTEENTRY
srcval
;
PALETTEENTRY
srcval
;
srcval
=
srccolors
[
(
int
)
*
srcpixel
++
];
srcval
=
srccolors
[
*
srcpixel
++
];
dstbyte
[
0
]
=
srcval
.
peBlue
;
dstbyte
[
0
]
=
srcval
.
peBlue
;
dstbyte
[
1
]
=
srcval
.
peGreen
;
dstbyte
[
1
]
=
srcval
.
peGreen
;
dstbyte
[
2
]
=
srcval
.
peRed
;
dstbyte
[
2
]
=
srcval
.
peRed
;
...
@@ -3400,7 +3400,7 @@ static void X11DRV_DIB_GetImageBits_32( int lines, BYTE *dstbits,
...
@@ -3400,7 +3400,7 @@ static void X11DRV_DIB_GetImageBits_32( int lines, BYTE *dstbits,
dstpixel
=
(
DWORD
*
)
dstbits
;
dstpixel
=
(
DWORD
*
)
dstbits
;
for
(
x
=
0
;
x
<
width
;
x
++
)
{
for
(
x
=
0
;
x
<
width
;
x
++
)
{
PALETTEENTRY
srcval
;
PALETTEENTRY
srcval
;
srcval
=
srccolors
[
(
int
)
*
srcpixel
++
];
srcval
=
srccolors
[
*
srcpixel
++
];
*
dstpixel
++=
(
srcval
.
peRed
<<
rShift
)
|
*
dstpixel
++=
(
srcval
.
peRed
<<
rShift
)
|
(
srcval
.
peGreen
<<
gShift
)
|
(
srcval
.
peGreen
<<
gShift
)
|
(
srcval
.
peBlue
<<
bShift
);
(
srcval
.
peBlue
<<
bShift
);
...
...
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