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
a68cbe98
Commit
a68cbe98
authored
Sep 22, 2011
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Sep 22, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdi32/tests: Remove casts to the type of the casted expression.
parent
c7602d51
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
bitmap.c
dlls/gdi32/tests/bitmap.c
+7
-7
No files found.
dlls/gdi32/tests/bitmap.c
View file @
a68cbe98
...
...
@@ -879,7 +879,7 @@ static void test_dib_formats(void)
bi
->
bmiHeader
.
biSizeImage
=
0
;
memset
(
bi
->
bmiColors
,
0xaa
,
sizeof
(
RGBQUAD
)
*
256
);
hdib
=
CreateDIBSection
(
hdc
,
bi
,
DIB_RGB_COLORS
,
(
void
**
)
&
bits
,
NULL
,
0
);
hdib
=
CreateDIBSection
(
hdc
,
bi
,
DIB_RGB_COLORS
,
&
bits
,
NULL
,
0
);
if
(
expect_ok
&&
(
planes
==
1
||
planes
*
bpp
<=
16
))
ok
(
hdib
!=
NULL
,
"CreateDIBSection failed for %u/%u/%u
\n
"
,
bpp
,
planes
,
compr
);
else
...
...
@@ -1006,7 +1006,7 @@ static void test_dib_formats(void)
*
(
DWORD
*
)
&
bi
->
bmiColors
[
1
]
=
0
;
*
(
DWORD
*
)
&
bi
->
bmiColors
[
2
]
=
0
;
hdib
=
CreateDIBSection
(
hdc
,
bi
,
DIB_RGB_COLORS
,
(
void
**
)
&
bits
,
NULL
,
0
);
hdib
=
CreateDIBSection
(
hdc
,
bi
,
DIB_RGB_COLORS
,
&
bits
,
NULL
,
0
);
ok
(
hdib
==
NULL
,
"CreateDIBSection succeeded with null bitfields
\n
"
);
ret
=
SetDIBits
(
hdc
,
hbmp
,
0
,
1
,
data
,
bi
,
DIB_RGB_COLORS
);
ok
(
!
ret
,
"SetDIBits succeeded with null bitfields
\n
"
);
...
...
@@ -1034,7 +1034,7 @@ static void test_dib_formats(void)
*
(
DWORD
*
)
&
bi
->
bmiColors
[
0
]
=
3
;
*
(
DWORD
*
)
&
bi
->
bmiColors
[
1
]
=
0
;
*
(
DWORD
*
)
&
bi
->
bmiColors
[
2
]
=
7
;
hdib
=
CreateDIBSection
(
hdc
,
bi
,
DIB_RGB_COLORS
,
(
void
**
)
&
bits
,
NULL
,
0
);
hdib
=
CreateDIBSection
(
hdc
,
bi
,
DIB_RGB_COLORS
,
&
bits
,
NULL
,
0
);
ok
(
hdib
==
NULL
,
"CreateDIBSection succeeded with null bitfields
\n
"
);
ret
=
SetDIBits
(
hdc
,
hbmp
,
0
,
1
,
data
,
bi
,
DIB_RGB_COLORS
);
ok
(
!
ret
,
"SetDIBits succeeded with null bitfields
\n
"
);
...
...
@@ -1043,7 +1043,7 @@ static void test_dib_formats(void)
*
(
DWORD
*
)
&
bi
->
bmiColors
[
0
]
=
0x55
;
*
(
DWORD
*
)
&
bi
->
bmiColors
[
1
]
=
0x44
;
*
(
DWORD
*
)
&
bi
->
bmiColors
[
2
]
=
0x33
;
hdib
=
CreateDIBSection
(
hdc
,
bi
,
DIB_RGB_COLORS
,
(
void
**
)
&
bits
,
NULL
,
0
);
hdib
=
CreateDIBSection
(
hdc
,
bi
,
DIB_RGB_COLORS
,
&
bits
,
NULL
,
0
);
ok
(
hdib
!=
NULL
,
"CreateDIBSection failed with bad bitfields
\n
"
);
if
(
hdib
)
DeleteObject
(
hdib
);
ret
=
SetDIBits
(
hdc
,
hbmp
,
0
,
1
,
data
,
bi
,
DIB_RGB_COLORS
);
...
...
@@ -1053,7 +1053,7 @@ static void test_dib_formats(void)
bi
->
bmiHeader
.
biHeight
=
2
;
bi
->
bmiHeader
.
biBitCount
=
32
;
bi
->
bmiHeader
.
biCompression
=
BI_RGB
;
hdib
=
CreateDIBSection
(
hdc
,
bi
,
DIB_RGB_COLORS
,
(
void
**
)
&
bits
,
NULL
,
0
);
hdib
=
CreateDIBSection
(
hdc
,
bi
,
DIB_RGB_COLORS
,
&
bits
,
NULL
,
0
);
ok
(
hdib
==
NULL
,
"CreateDIBSection succeeded with negative width
\n
"
);
hdib
=
CreateDIBitmap
(
hdc
,
&
bi
->
bmiHeader
,
0
,
bits
,
bi
,
DIB_RGB_COLORS
);
ok
(
hdib
==
NULL
,
"CreateDIBitmap succeeded with negative width
\n
"
);
...
...
@@ -1076,7 +1076,7 @@ static void test_dib_formats(void)
bi
->
bmiHeader
.
biHeight
=
2
;
bi
->
bmiHeader
.
biBitCount
=
32
;
bi
->
bmiHeader
.
biCompression
=
BI_RGB
;
hdib
=
CreateDIBSection
(
hdc
,
bi
,
DIB_RGB_COLORS
,
(
void
**
)
&
bits
,
NULL
,
0
);
hdib
=
CreateDIBSection
(
hdc
,
bi
,
DIB_RGB_COLORS
,
&
bits
,
NULL
,
0
);
ok
(
hdib
==
NULL
,
"CreateDIBSection succeeded with zero width
\n
"
);
hdib
=
CreateDIBitmap
(
hdc
,
&
bi
->
bmiHeader
,
0
,
bits
,
bi
,
DIB_RGB_COLORS
);
ok
(
hdib
!=
NULL
,
"CreateDIBitmap failed with zero width
\n
"
);
...
...
@@ -1100,7 +1100,7 @@ static void test_dib_formats(void)
bi
->
bmiHeader
.
biHeight
=
0
;
bi
->
bmiHeader
.
biBitCount
=
32
;
bi
->
bmiHeader
.
biCompression
=
BI_RGB
;
hdib
=
CreateDIBSection
(
hdc
,
bi
,
DIB_RGB_COLORS
,
(
void
**
)
&
bits
,
NULL
,
0
);
hdib
=
CreateDIBSection
(
hdc
,
bi
,
DIB_RGB_COLORS
,
&
bits
,
NULL
,
0
);
ok
(
hdib
==
NULL
,
"CreateDIBSection succeeded with zero height
\n
"
);
hdib
=
CreateDIBitmap
(
hdc
,
&
bi
->
bmiHeader
,
0
,
bits
,
bi
,
DIB_RGB_COLORS
);
ok
(
hdib
!=
NULL
,
"CreateDIBitmap failed with zero height
\n
"
);
...
...
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