Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
8ff77fce
Commit
8ff77fce
authored
Oct 25, 2008
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Oct 27, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdi32/tests: HGDIOBJ is interchangeable with other handle types; no casts are needed.
parent
4fc84eaf
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
10 deletions
+10
-10
bitmap.c
dlls/gdi32/tests/bitmap.c
+9
-9
brush.c
dlls/gdi32/tests/brush.c
+1
-1
No files found.
dlls/gdi32/tests/bitmap.c
View file @
8ff77fce
...
@@ -1158,7 +1158,7 @@ static void test_GetDIBits_selected_DIB(UINT bpp)
...
@@ -1158,7 +1158,7 @@ static void test_GetDIBits_selected_DIB(UINT bpp)
/* Select the DIB into a DC */
/* Select the DIB into a DC */
dib_dc
=
CreateCompatibleDC
(
NULL
);
dib_dc
=
CreateCompatibleDC
(
NULL
);
old_bmp
=
(
HBITMAP
)
SelectObject
(
dib_dc
,
dib
);
old_bmp
=
SelectObject
(
dib_dc
,
dib
);
dc
=
CreateCompatibleDC
(
NULL
);
dc
=
CreateCompatibleDC
(
NULL
);
bits2
=
HeapAlloc
(
GetProcessHeap
(),
HEAP_ZERO_MEMORY
,
dib_size
);
bits2
=
HeapAlloc
(
GetProcessHeap
(),
HEAP_ZERO_MEMORY
,
dib_size
);
assert
(
bits2
);
assert
(
bits2
);
...
@@ -1239,7 +1239,7 @@ static void test_GetDIBits_selected_DDB(BOOL monochrome)
...
@@ -1239,7 +1239,7 @@ static void test_GetDIBits_selected_DDB(BOOL monochrome)
/* Set the pixels */
/* Set the pixels */
ddb_dc
=
CreateCompatibleDC
(
NULL
);
ddb_dc
=
CreateCompatibleDC
(
NULL
);
old_bmp
=
(
HBITMAP
)
SelectObject
(
ddb_dc
,
ddb
);
old_bmp
=
SelectObject
(
ddb_dc
,
ddb
);
for
(
i
=
0
;
i
<
width
;
i
++
)
for
(
i
=
0
;
i
<
width
;
i
++
)
{
{
for
(
j
=
0
;
j
<
height
;
j
++
)
for
(
j
=
0
;
j
<
height
;
j
++
)
...
@@ -1281,7 +1281,7 @@ static void test_GetDIBits_selected_DDB(BOOL monochrome)
...
@@ -1281,7 +1281,7 @@ static void test_GetDIBits_selected_DDB(BOOL monochrome)
memcpy
(
info2
,
info
,
sizeof
(
BITMAPINFOHEADER
));
memcpy
(
info2
,
info
,
sizeof
(
BITMAPINFOHEADER
));
/* Select the DDB into another DC */
/* Select the DDB into another DC */
old_bmp
=
(
HBITMAP
)
SelectObject
(
ddb_dc
,
ddb
);
old_bmp
=
SelectObject
(
ddb_dc
,
ddb
);
/* Get the bits */
/* Get the bits */
res
=
GetDIBits
(
dc
,
ddb
,
0
,
height
,
bits2
,
info2
,
DIB_RGB_COLORS
);
res
=
GetDIBits
(
dc
,
ddb
,
0
,
height
,
bits2
,
info2
,
DIB_RGB_COLORS
);
...
@@ -1894,15 +1894,15 @@ static void test_CreateBitmap(void)
...
@@ -1894,15 +1894,15 @@ static void test_CreateBitmap(void)
HBITMAP
bm1
=
CreateCompatibleBitmap
(
screenDC
,
0
,
0
);
HBITMAP
bm1
=
CreateCompatibleBitmap
(
screenDC
,
0
,
0
);
HBITMAP
bm4
=
CreateBitmap
(
0
,
1
,
0
,
0
,
0
);
HBITMAP
bm4
=
CreateBitmap
(
0
,
1
,
0
,
0
,
0
);
HBITMAP
bm5
=
CreateDiscardableBitmap
(
hdc
,
0
,
0
);
HBITMAP
bm5
=
CreateDiscardableBitmap
(
hdc
,
0
,
0
);
HBITMAP
curObj1
=
(
HBITMAP
)
GetCurrentObject
(
hdc
,
OBJ_BITMAP
);
HBITMAP
curObj1
=
GetCurrentObject
(
hdc
,
OBJ_BITMAP
);
HBITMAP
curObj2
=
(
HBITMAP
)
GetCurrentObject
(
screenDC
,
OBJ_BITMAP
);
HBITMAP
curObj2
=
GetCurrentObject
(
screenDC
,
OBJ_BITMAP
);
/* these 2 are not the stock monochrome bitmap */
/* these 2 are not the stock monochrome bitmap */
HBITMAP
bm2
=
CreateCompatibleBitmap
(
hdc
,
1
,
1
);
HBITMAP
bm2
=
CreateCompatibleBitmap
(
hdc
,
1
,
1
);
HBITMAP
bm3
=
CreateBitmap
(
1
,
1
,
1
,
1
,
0
);
HBITMAP
bm3
=
CreateBitmap
(
1
,
1
,
1
,
1
,
0
);
HBITMAP
old1
=
(
HBITMAP
)
SelectObject
(
hdc
,
bm2
);
HBITMAP
old1
=
SelectObject
(
hdc
,
bm2
);
HBITMAP
old2
=
(
HBITMAP
)
SelectObject
(
screenDC
,
bm3
);
HBITMAP
old2
=
SelectObject
(
screenDC
,
bm3
);
SelectObject
(
hdc
,
old1
);
SelectObject
(
hdc
,
old1
);
SelectObject
(
screenDC
,
old2
);
SelectObject
(
screenDC
,
old2
);
...
@@ -2153,8 +2153,8 @@ void test_GdiAlphaBlend()
...
@@ -2153,8 +2153,8 @@ void test_GdiAlphaBlend()
bmpSrc
=
CreateDIBSection
(
hdcDst
,
&
bmi
,
DIB_RGB_COLORS
,
&
bits
,
NULL
,
0
);
bmpSrc
=
CreateDIBSection
(
hdcDst
,
&
bmi
,
DIB_RGB_COLORS
,
&
bits
,
NULL
,
0
);
ok
(
bmpSrc
!=
NULL
,
"Couldn't create source bitmap
\n
"
);
ok
(
bmpSrc
!=
NULL
,
"Couldn't create source bitmap
\n
"
);
oldDst
=
(
HBITMAP
)
SelectObject
(
hdcDst
,
bmpDst
);
oldDst
=
SelectObject
(
hdcDst
,
bmpDst
);
oldSrc
=
(
HBITMAP
)
SelectObject
(
hdcSrc
,
bmpSrc
);
oldSrc
=
SelectObject
(
hdcSrc
,
bmpSrc
);
blend
.
BlendOp
=
AC_SRC_OVER
;
blend
.
BlendOp
=
AC_SRC_OVER
;
blend
.
BlendFlags
=
0
;
blend
.
BlendFlags
=
0
;
...
...
dlls/gdi32/tests/brush.c
View file @
8ff77fce
...
@@ -51,7 +51,7 @@ static void test_solidbrush(void)
...
@@ -51,7 +51,7 @@ static void test_solidbrush(void)
solidBrush
=
CreateSolidBrush
(
stock
[
i
].
color
);
solidBrush
=
CreateSolidBrush
(
stock
[
i
].
color
);
if
(
stock
[
i
].
stockobj
!=
-
1
)
{
if
(
stock
[
i
].
stockobj
!=
-
1
)
{
stockBrush
=
(
HBRUSH
)
GetStockObject
(
stock
[
i
].
stockobj
);
stockBrush
=
GetStockObject
(
stock
[
i
].
stockobj
);
ok
(
stockBrush
!=
solidBrush
||
ok
(
stockBrush
!=
solidBrush
||
broken
(
stockBrush
==
solidBrush
),
/* win9x does return stock object */
broken
(
stockBrush
==
solidBrush
),
/* win9x does return stock object */
"Stock %s brush equals solid %s brush
\n
"
,
stock
[
i
].
name
,
stock
[
i
].
name
);
"Stock %s brush equals solid %s brush
\n
"
,
stock
[
i
].
name
,
stock
[
i
].
name
);
...
...
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