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
57b55a66
Commit
57b55a66
authored
Oct 14, 2009
by
Wilfried Pasquazzo
Committed by
Alexandre Julliard
Oct 15, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
oleaut32/tests: Testcase for IPicture_Render with icons, check for drawing size and position.
parent
faa45162
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
1 deletion
+24
-1
olepicture.c
dlls/oleaut32/tests/olepicture.c
+24
-1
No files found.
dlls/oleaut32/tests/olepicture.c
View file @
57b55a66
...
@@ -594,6 +594,9 @@ static void test_Render(void)
...
@@ -594,6 +594,9 @@ static void test_Render(void)
HRESULT
hres
;
HRESULT
hres
;
short
type
;
short
type
;
PICTDESC
desc
;
PICTDESC
desc
;
OLE_XSIZE_HIMETRIC
pWidth
;
OLE_YSIZE_HIMETRIC
pHeight
;
COLORREF
result
;
HDC
hdc
=
GetDC
(
0
);
HDC
hdc
=
GetDC
(
0
);
/* test IPicture::Render return code on uninitialized picture */
/* test IPicture::Render return code on uninitialized picture */
...
@@ -646,8 +649,28 @@ static void test_Render(void)
...
@@ -646,8 +649,28 @@ static void test_Render(void)
ole_expect
(
hres
,
CTL_E_INVALIDPROPERTYVALUE
);
ole_expect
(
hres
,
CTL_E_INVALIDPROPERTYVALUE
);
hres
=
IPicture_Render
(
pic
,
hdc
,
0
,
0
,
0
,
0
,
0
,
0
,
10
,
10
,
NULL
);
hres
=
IPicture_Render
(
pic
,
hdc
,
0
,
0
,
0
,
0
,
0
,
0
,
10
,
10
,
NULL
);
ole_expect
(
hres
,
CTL_E_INVALIDPROPERTYVALUE
);
ole_expect
(
hres
,
CTL_E_INVALIDPROPERTYVALUE
);
IPicture_Release
(
pic
);
/* Check if target size and position is respected */
IPicture_get_Width
(
pic
,
&
pWidth
);
IPicture_get_Height
(
pic
,
&
pHeight
);
SetPixelV
(
hdc
,
0
,
0
,
0x00F0F0F0
);
SetPixelV
(
hdc
,
5
,
5
,
0x00F0F0F0
);
SetPixelV
(
hdc
,
10
,
10
,
0x00F0F0F0
);
IPicture_Render
(
pic
,
hdc
,
1
,
1
,
9
,
9
,
0
,
0
,
pWidth
,
-
pHeight
,
NULL
);
result
=
GetPixel
(
hdc
,
0
,
0
);
ok
(
result
==
0x00F0F0F0
,
"Color at 0,0 should be unchanged 0xF0F0F0, but was 0x%06X
\n
"
,
result
);
result
=
GetPixel
(
hdc
,
5
,
5
);
ok
(
result
!=
0x00F0F0F0
,
"Color at 5,5 should have changed, but still was 0x%06X
\n
"
,
result
);
result
=
GetPixel
(
hdc
,
10
,
10
);
todo_wine
ok
(
result
==
0x00F0F0F0
,
"Color at 10,10 should be unchanged 0xF0F0F0, but was 0x%06X
\n
"
,
result
);
IPicture_Release
(
pic
);
ReleaseDC
(
NULL
,
hdc
);
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