Hans Leidekker : windowscodecs: Implement IWICColorContext::GetType.
Alexandre Julliard
julliard at winehq.org
Thu Nov 15 15:26:31 CST 2012
Module: wine
Branch: master
Commit: c9acbecdf0780c3bcb61a6dae48ab6345994c376
URL: http://source.winehq.org/git/wine.git/?a=commit;h=c9acbecdf0780c3bcb61a6dae48ab6345994c376
Author: Hans Leidekker <hans at codeweavers.com>
Date: Thu Nov 15 14:07:23 2012 +0100
windowscodecs: Implement IWICColorContext::GetType.
---
dlls/windowscodecs/colorcontext.c | 9 +++++++--
1 files changed, 7 insertions(+), 2 deletions(-)
diff --git a/dlls/windowscodecs/colorcontext.c b/dlls/windowscodecs/colorcontext.c
index 9517988..1c772c0 100644
--- a/dlls/windowscodecs/colorcontext.c
+++ b/dlls/windowscodecs/colorcontext.c
@@ -36,6 +36,7 @@ WINE_DEFAULT_DEBUG_CHANNEL(wincodecs);
typedef struct ColorContext {
IWICColorContext IWICColorContext_iface;
LONG ref;
+ WICColorContextType type;
} ColorContext;
static inline ColorContext *impl_from_IWICColorContext(IWICColorContext *iface)
@@ -115,8 +116,11 @@ static HRESULT WINAPI ColorContext_InitializeFromExifColorSpace(IWICColorContext
static HRESULT WINAPI ColorContext_GetType(IWICColorContext *iface,
WICColorContextType *pType)
{
- FIXME("(%p,%p)\n", iface, pType);
- return E_NOTIMPL;
+ ColorContext *This = impl_from_IWICColorContext(iface);
+ TRACE("(%p,%p)\n", iface, pType);
+
+ *pType = This->type;
+ return S_OK;
}
static HRESULT WINAPI ColorContext_GetProfileBytes(IWICColorContext *iface,
@@ -154,6 +158,7 @@ HRESULT ColorContext_Create(IWICColorContext **colorcontext)
This->IWICColorContext_iface.lpVtbl = &ColorContext_Vtbl;
This->ref = 1;
+ This->type = 0;
*colorcontext = &This->IWICColorContext_iface;
More information about the wine-cvs
mailing list