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
818ff38d
Commit
818ff38d
authored
Mar 27, 2010
by
Mikhail Maroukhine
Committed by
Alexandre Julliard
Mar 29, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdiplus: Fix compiler warnings with flag -Wcast-qual.
parent
8fd8d9e9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
image.c
dlls/gdiplus/image.c
+3
-3
No files found.
dlls/gdiplus/image.c
View file @
818ff38d
...
...
@@ -122,7 +122,7 @@ static inline void getpixel_16bppGrayScale(BYTE *r, BYTE *g, BYTE *b, BYTE *a,
static
inline
void
getpixel_16bppRGB555
(
BYTE
*
r
,
BYTE
*
g
,
BYTE
*
b
,
BYTE
*
a
,
const
BYTE
*
row
,
UINT
x
)
{
WORD
pixel
=
*
((
WORD
*
)(
row
)
+
x
);
WORD
pixel
=
*
((
const
WORD
*
)(
row
)
+
x
);
*
r
=
(
pixel
>>
7
&
0xf8
)
|
(
pixel
>>
12
&
0x7
);
*
g
=
(
pixel
>>
2
&
0xf8
)
|
(
pixel
>>
6
&
0x7
);
*
b
=
(
pixel
<<
3
&
0xf8
)
|
(
pixel
>>
2
&
0x7
);
...
...
@@ -132,7 +132,7 @@ static inline void getpixel_16bppRGB555(BYTE *r, BYTE *g, BYTE *b, BYTE *a,
static
inline
void
getpixel_16bppRGB565
(
BYTE
*
r
,
BYTE
*
g
,
BYTE
*
b
,
BYTE
*
a
,
const
BYTE
*
row
,
UINT
x
)
{
WORD
pixel
=
*
((
WORD
*
)(
row
)
+
x
);
WORD
pixel
=
*
((
const
WORD
*
)(
row
)
+
x
);
*
r
=
(
pixel
>>
8
&
0xf8
)
|
(
pixel
>>
13
&
0x7
);
*
g
=
(
pixel
>>
3
&
0xfc
)
|
(
pixel
>>
9
&
0x3
);
*
b
=
(
pixel
<<
3
&
0xf8
)
|
(
pixel
>>
2
&
0x7
);
...
...
@@ -142,7 +142,7 @@ static inline void getpixel_16bppRGB565(BYTE *r, BYTE *g, BYTE *b, BYTE *a,
static
inline
void
getpixel_16bppARGB1555
(
BYTE
*
r
,
BYTE
*
g
,
BYTE
*
b
,
BYTE
*
a
,
const
BYTE
*
row
,
UINT
x
)
{
WORD
pixel
=
*
((
WORD
*
)(
row
)
+
x
);
WORD
pixel
=
*
((
const
WORD
*
)(
row
)
+
x
);
*
r
=
(
pixel
>>
7
&
0xf8
)
|
(
pixel
>>
12
&
0x7
);
*
g
=
(
pixel
>>
2
&
0xf8
)
|
(
pixel
>>
6
&
0x7
);
*
b
=
(
pixel
<<
3
&
0xf8
)
|
(
pixel
>>
2
&
0x7
);
...
...
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