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
e6c88226
Commit
e6c88226
authored
Jan 31, 2013
by
Dmitry Timoshkov
Committed by
Alexandre Julliard
Jan 30, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
windowscodecs: Implement GetThumbnail in the ICO frame decoder.
parent
166a7e99
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
7 deletions
+14
-7
icoformat.c
dlls/windowscodecs/icoformat.c
+2
-2
icoformat.c
dlls/windowscodecs/tests/icoformat.c
+12
-5
No files found.
dlls/windowscodecs/icoformat.c
View file @
e6c88226
...
...
@@ -200,8 +200,8 @@ static HRESULT WINAPI IcoFrameDecode_GetColorContexts(IWICBitmapFrameDecode *ifa
static
HRESULT
WINAPI
IcoFrameDecode_GetThumbnail
(
IWICBitmapFrameDecode
*
iface
,
IWICBitmapSource
**
ppIThumbnail
)
{
FIXM
E
(
"(%p,%p)
\n
"
,
iface
,
ppIThumbnail
);
return
E_NOTIMPL
;
TRAC
E
(
"(%p,%p)
\n
"
,
iface
,
ppIThumbnail
);
return
IWICBitmapFrameDecode_QueryInterface
(
iface
,
&
IID_IWICBitmapSource
,
(
void
**
)
ppIThumbnail
)
;
}
static
const
IWICBitmapFrameDecodeVtbl
IcoFrameDecode_Vtbl
=
{
...
...
dlls/windowscodecs/tests/icoformat.c
View file @
e6c88226
...
...
@@ -133,17 +133,24 @@ static void test_bad_icondirentry_size(void)
if
(
SUCCEEDED
(
hr
))
{
UINT
width
=
0
,
height
=
0
;
IWICBitmapSource
*
thumbnail
=
NULL
;
UINT
width
,
height
;
IWICBitmapSource
*
thumbnail
;
width
=
height
=
0
;
hr
=
IWICBitmapFrameDecode_GetSize
(
framedecode
,
&
width
,
&
height
);
ok
(
hr
==
S_OK
,
"GetFrameSize failed, hr=%x
\n
"
,
hr
);
ok
(
width
==
16
&&
height
==
16
,
"framesize=%ux%u
\n
"
,
width
,
height
);
hr
=
IWICBitmapFrameDecode_GetThumbnail
(
framedecode
,
&
thumbnail
);
todo_wine
ok
(
hr
==
S_OK
,
"GetThumbnail failed, hr=%x
\n
"
,
hr
);
if
(
thumbnail
)
IWICBitmapSource_Release
(
thumbnail
);
ok
(
hr
==
S_OK
,
"GetThumbnail failed, hr=%x
\n
"
,
hr
);
if
(
hr
==
S_OK
)
{
width
=
height
=
0
;
hr
=
IWICBitmapSource_GetSize
(
thumbnail
,
&
width
,
&
height
);
ok
(
hr
==
S_OK
,
"GetFrameSize failed, hr=%x
\n
"
,
hr
);
ok
(
width
==
16
&&
height
==
16
,
"framesize=%ux%u
\n
"
,
width
,
height
);
IWICBitmapSource_Release
(
thumbnail
);
}
IWICBitmapFrameDecode_Release
(
framedecode
);
}
...
...
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