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
a62bd245
Commit
a62bd245
authored
Aug 14, 2012
by
Vincent Povirk
Committed by
Alexandre Julliard
Aug 16, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
windowscodecs: Implement IWICBitmap::GetSize.
parent
f26402ca
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
3 deletions
+10
-3
bitmap.c
dlls/windowscodecs/bitmap.c
+9
-2
bitmap.c
dlls/windowscodecs/tests/bitmap.c
+1
-1
No files found.
dlls/windowscodecs/bitmap.c
View file @
a62bd245
...
@@ -266,9 +266,16 @@ static ULONG WINAPI BitmapImpl_Release(IWICBitmap *iface)
...
@@ -266,9 +266,16 @@ static ULONG WINAPI BitmapImpl_Release(IWICBitmap *iface)
static
HRESULT
WINAPI
BitmapImpl_GetSize
(
IWICBitmap
*
iface
,
static
HRESULT
WINAPI
BitmapImpl_GetSize
(
IWICBitmap
*
iface
,
UINT
*
puiWidth
,
UINT
*
puiHeight
)
UINT
*
puiWidth
,
UINT
*
puiHeight
)
{
{
FIXME
(
"(%p,%p,%p)
\n
"
,
iface
,
puiWidth
,
puiHeight
);
BitmapImpl
*
This
=
impl_from_IWICBitmap
(
iface
);
TRACE
(
"(%p,%p,%p)
\n
"
,
iface
,
puiWidth
,
puiHeight
);
return
E_NOTIMPL
;
if
(
!
puiWidth
||
!
puiHeight
)
return
E_INVALIDARG
;
*
puiWidth
=
This
->
width
;
*
puiHeight
=
This
->
height
;
return
S_OK
;
}
}
static
HRESULT
WINAPI
BitmapImpl_GetPixelFormat
(
IWICBitmap
*
iface
,
static
HRESULT
WINAPI
BitmapImpl_GetPixelFormat
(
IWICBitmap
*
iface
,
...
...
dlls/windowscodecs/tests/bitmap.c
View file @
a62bd245
...
@@ -256,12 +256,12 @@ todo_wine {
...
@@ -256,12 +256,12 @@ todo_wine {
ok
(
hr
==
S_OK
,
"IWICBitmap_GetResolution failed hr=%x
\n
"
,
hr
);
ok
(
hr
==
S_OK
,
"IWICBitmap_GetResolution failed hr=%x
\n
"
,
hr
);
ok
(
dpix
==
12
.
0
,
"got %f, expected 12.0
\n
"
,
dpix
);
ok
(
dpix
==
12
.
0
,
"got %f, expected 12.0
\n
"
,
dpix
);
ok
(
dpiy
==
34
.
0
,
"got %f, expected 34.0
\n
"
,
dpiy
);
ok
(
dpiy
==
34
.
0
,
"got %f, expected 34.0
\n
"
,
dpiy
);
}
hr
=
IWICBitmap_GetSize
(
bitmap
,
&
width
,
&
height
);
hr
=
IWICBitmap_GetSize
(
bitmap
,
&
width
,
&
height
);
ok
(
hr
==
S_OK
,
"IWICBitmap_GetSize failed hr=%x
\n
"
,
hr
);
ok
(
hr
==
S_OK
,
"IWICBitmap_GetSize failed hr=%x
\n
"
,
hr
);
ok
(
width
==
3
,
"got %d, expected 3
\n
"
,
width
);
ok
(
width
==
3
,
"got %d, expected 3
\n
"
,
width
);
ok
(
height
==
3
,
"got %d, expected 3
\n
"
,
height
);
ok
(
height
==
3
,
"got %d, expected 3
\n
"
,
height
);
}
IWICBitmap_Release
(
bitmap
);
IWICBitmap_Release
(
bitmap
);
}
}
...
...
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