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
a00d2235
Commit
a00d2235
authored
Oct 18, 2009
by
Wilfried Pasquazzo
Committed by
Alexandre Julliard
Oct 19, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
oleaut32: Updated IPicture_Render testcase to pass on all older Windows.
parent
0065a115
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
8 deletions
+19
-8
olepicture.c
dlls/oleaut32/tests/olepicture.c
+19
-8
No files found.
dlls/oleaut32/tests/olepicture.c
View file @
a00d2235
...
...
@@ -596,7 +596,7 @@ static void test_Render(void)
PICTDESC
desc
;
OLE_XSIZE_HIMETRIC
pWidth
;
OLE_YSIZE_HIMETRIC
pHeight
;
COLORREF
result
;
COLORREF
result
,
expected
;
HDC
hdc
=
GetDC
(
0
);
/* test IPicture::Render return code on uninitialized picture */
...
...
@@ -657,18 +657,29 @@ static void test_Render(void)
SetPixelV
(
hdc
,
0
,
0
,
0x00F0F0F0
);
SetPixelV
(
hdc
,
5
,
5
,
0x00F0F0F0
);
SetPixelV
(
hdc
,
10
,
10
,
0x00F0F0F0
);
expected
=
GetPixel
(
hdc
,
0
,
0
);
IPicture_Render
(
pic
,
hdc
,
1
,
1
,
9
,
9
,
0
,
0
,
pWidth
,
-
pHeight
,
NULL
);
hres
=
IPicture_Render
(
pic
,
hdc
,
1
,
1
,
9
,
9
,
0
,
0
,
pWidth
,
-
pHeight
,
NULL
);
ole_expect
(
hres
,
S_OK
);
if
(
hres
!=
S_OK
)
{
IPicture_Release
(
pic
);
ReleaseDC
(
NULL
,
hdc
);
return
;
}
/* Evaluate the rendered Icon */
result
=
GetPixel
(
hdc
,
0
,
0
);
ok
(
result
==
0x00F0F0F0
,
"Color at 0,0 should be unchanged 0x
F0F0F0, but was 0x%06X
\n
"
,
result
);
ok
(
result
==
expected
,
"Color at 0,0 should be unchanged 0x
%06X, but was 0x%06X
\n
"
,
expected
,
result
);
result
=
GetPixel
(
hdc
,
5
,
5
);
ok
(
result
!=
0x00F0F0F0
,
"Color at 5,5 should have changed, but still was 0x%06X
\n
"
,
result
);
ok
(
result
!=
expected
||
broken
(
result
==
expected
),
/* WinNT 4.0 and older may claim they drew */
/* the icon, even if they didn't. */
"Color at 5,5 should have changed, but still was 0x%06X
\n
"
,
expected
);
result
=
GetPixel
(
hdc
,
10
,
10
);
ok
(
result
==
0x00F0F0F0
,
"Color at 10,10 should be unchanged 0x
F0F0F0, but was 0x%06X
\n
"
,
result
);
ok
(
result
==
expected
,
"Color at 10,10 should be unchanged 0x
%06X, but was 0x%06X
\n
"
,
expected
,
result
);
IPicture_Release
(
pic
);
ReleaseDC
(
NULL
,
hdc
);
...
...
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