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
f8d8fbba
Commit
f8d8fbba
authored
Nov 30, 2009
by
Jacek Caban
Committed by
Alexandre Julliard
Dec 01, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Added IHTMLScreen::get_colorDepth implementation.
parent
fd24068c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
2 deletions
+11
-2
htmlscreen.c
dlls/mshtml/htmlscreen.c
+5
-2
dom.c
dlls/mshtml/tests/dom.c
+6
-0
No files found.
dlls/mshtml/htmlscreen.c
View file @
f8d8fbba
...
...
@@ -127,8 +127,11 @@ static HRESULT WINAPI HTMLScreen_Invoke(IHTMLScreen *iface, DISPID dispIdMember,
static
HRESULT
WINAPI
HTMLScreen_get_colorDepth
(
IHTMLScreen
*
iface
,
LONG
*
p
)
{
HTMLScreen
*
This
=
HTMLSCREEN_THIS
(
iface
);
FIXME
(
"(%p)->(%p)
\n
"
,
This
,
p
);
return
E_NOTIMPL
;
TRACE
(
"(%p)->(%p)
\n
"
,
This
,
p
);
*
p
=
GetDeviceCaps
(
get_display_dc
(),
BITSPIXEL
);
return
S_OK
;
}
static
HRESULT
WINAPI
HTMLScreen_put_bufferDepth
(
IHTMLScreen
*
iface
,
LONG
v
)
...
...
dlls/mshtml/tests/dom.c
View file @
f8d8fbba
...
...
@@ -3069,6 +3069,12 @@ static void test_screen(IHTMLWindow2 *window)
ok
(
hres
==
S_OK
,
"get_height failed: %08x
\n
"
,
hres
);
ok
(
l
==
exl
,
"height = %d, expected %d
\n
"
,
l
,
exl
);
exl
=
GetDeviceCaps
(
hdc
,
BITSPIXEL
);
l
=
0xdeadbeef
;
hres
=
IHTMLScreen_get_colorDepth
(
screen
,
&
l
);
ok
(
hres
==
S_OK
,
"get_height failed: %08x
\n
"
,
hres
);
ok
(
l
==
exl
,
"height = %d, expected %d
\n
"
,
l
,
exl
);
DeleteObject
(
hdc
);
IHTMLScreen_Release
(
screen
);
...
...
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