Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
78c3aa78
Commit
78c3aa78
authored
Jun 24, 2009
by
Vincent Povirk
Committed by
Alexandre Julliard
Jun 29, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
windowscodecs: Implement GetResolution for BMP decoder.
parent
7c7f70a3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
2 deletions
+24
-2
bmpdecode.c
dlls/windowscodecs/bmpdecode.c
+24
-2
No files found.
dlls/windowscodecs/bmpdecode.c
View file @
78c3aa78
...
...
@@ -155,11 +155,33 @@ static HRESULT WINAPI BmpFrameDecode_GetPixelFormat(IWICBitmapFrameDecode *iface
return
E_NOTIMPL
;
}
static
HRESULT
BmpHeader_GetResolution
(
BITMAPV5HEADER
*
bih
,
double
*
pDpiX
,
double
*
pDpiY
)
{
switch
(
bih
->
bV5Size
)
{
case
sizeof
(
BITMAPCOREHEADER
):
*
pDpiX
=
96
.
0
;
*
pDpiY
=
96
.
0
;
return
S_OK
;
case
sizeof
(
BITMAPCOREHEADER2
):
case
sizeof
(
BITMAPINFOHEADER
):
case
sizeof
(
BITMAPV4HEADER
):
case
sizeof
(
BITMAPV5HEADER
):
*
pDpiX
=
bih
->
bV5XPelsPerMeter
*
0
.
0254
;
*
pDpiY
=
bih
->
bV5YPelsPerMeter
*
0
.
0254
;
return
S_OK
;
default:
return
E_FAIL
;
}
}
static
HRESULT
WINAPI
BmpFrameDecode_GetResolution
(
IWICBitmapFrameDecode
*
iface
,
double
*
pDpiX
,
double
*
pDpiY
)
{
FIXME
(
"(%p,%p,%p): stub
\n
"
,
iface
,
pDpiX
,
pDpiY
);
return
E_NOTIMPL
;
BmpFrameDecode
*
This
=
(
BmpFrameDecode
*
)
iface
;
TRACE
(
"(%p,%p,%p)
\n
"
,
iface
,
pDpiX
,
pDpiY
);
return
BmpHeader_GetResolution
(
&
This
->
bih
,
pDpiX
,
pDpiY
);
}
static
HRESULT
WINAPI
BmpFrameDecode_CopyPalette
(
IWICBitmapFrameDecode
*
iface
,
...
...
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