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
0ccdda12
Commit
0ccdda12
authored
Jul 31, 2012
by
Nikolay Sivov
Committed by
Alexandre Julliard
Jul 31, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dwrite: Added IDWriteGdiInterop stub.
parent
370099e4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
131 additions
and
2 deletions
+131
-2
Makefile.in
dlls/dwrite/Makefile.in
+1
-0
dwrite_private.h
dlls/dwrite/dwrite_private.h
+19
-0
gdiinterop.c
dlls/dwrite/gdiinterop.c
+108
-0
main.c
dlls/dwrite/main.c
+3
-2
No files found.
dlls/dwrite/Makefile.in
View file @
0ccdda12
MODULE
=
dwrite.dll
C_SRCS
=
\
gdiinterop.c
\
main.c
@MAKE_DLL_RULES@
dlls/dwrite/dwrite_private.h
0 → 100644
View file @
0ccdda12
/*
* Copyright 2012 Nikolay Sivov for CodeWeavers
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
extern
HRESULT
create_gdiinterop
(
IDWriteGdiInterop
**
)
DECLSPEC_HIDDEN
;
dlls/dwrite/gdiinterop.c
0 → 100644
View file @
0ccdda12
/*
* GDI Interop
*
* Copyright 2012 Nikolay Sivov for CodeWeavers
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
#include <stdarg.h>
#include "windef.h"
#include "winbase.h"
#include "dwrite.h"
#include "wine/debug.h"
WINE_DEFAULT_DEBUG_CHANNEL
(
dwrite
);
static
HRESULT
WINAPI
gdiinterop_QueryInterface
(
IDWriteGdiInterop
*
iface
,
REFIID
riid
,
void
**
obj
)
{
TRACE
(
"(%s %p)
\n
"
,
debugstr_guid
(
riid
),
obj
);
if
(
IsEqualIID
(
riid
,
&
IID_IUnknown
)
||
IsEqualIID
(
riid
,
&
IID_IDWriteGdiInterop
))
{
*
obj
=
iface
;
return
S_OK
;
}
*
obj
=
NULL
;
return
E_NOINTERFACE
;
}
static
ULONG
WINAPI
gdiinterop_AddRef
(
IDWriteGdiInterop
*
iface
)
{
return
2
;
}
static
ULONG
WINAPI
gdiinterop_Release
(
IDWriteGdiInterop
*
iface
)
{
return
1
;
}
static
HRESULT
WINAPI
gdiinterop_CreateFontFromLOGFONT
(
IDWriteGdiInterop
*
iface
,
LOGFONTW
const
*
logfont
,
IDWriteFont
**
font
)
{
FIXME
(
"(%p %p): stub
\n
"
,
logfont
,
font
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
gdiinterop_ConvertFontToLOGFONT
(
IDWriteGdiInterop
*
iface
,
IDWriteFont
*
font
,
LOGFONTW
*
logfont
,
BOOL
*
is_systemfont
)
{
FIXME
(
"(%p %p %p): stub
\n
"
,
font
,
logfont
,
is_systemfont
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
gdiinterop_ConvertFontFaceToLOGFONT
(
IDWriteGdiInterop
*
iface
,
IDWriteFontFace
*
font
,
LOGFONTW
*
logfont
)
{
FIXME
(
"(%p %p): stub
\n
"
,
font
,
logfont
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
gdiinterop_CreateFontFaceFromHdc
(
IDWriteGdiInterop
*
iface
,
HDC
hdc
,
IDWriteFontFace
**
fontface
)
{
FIXME
(
"(%p %p): stub
\n
"
,
hdc
,
fontface
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
gdiinterop_CreateBitmapRenderTarget
(
IDWriteGdiInterop
*
iface
,
HDC
hdc
,
UINT32
width
,
UINT32
height
,
IDWriteBitmapRenderTarget
**
target
)
{
FIXME
(
"(%p %u %u %p): stub
\n
"
,
hdc
,
width
,
height
,
target
);
return
E_NOTIMPL
;
}
static
const
struct
IDWriteGdiInteropVtbl
gdiinteropvtbl
=
{
gdiinterop_QueryInterface
,
gdiinterop_AddRef
,
gdiinterop_Release
,
gdiinterop_CreateFontFromLOGFONT
,
gdiinterop_ConvertFontToLOGFONT
,
gdiinterop_ConvertFontFaceToLOGFONT
,
gdiinterop_CreateFontFaceFromHdc
,
gdiinterop_CreateBitmapRenderTarget
};
static
IDWriteGdiInterop
gdiinterop
=
{
&
gdiinteropvtbl
};
HRESULT
create_gdiinterop
(
IDWriteGdiInterop
**
ret
)
{
*
ret
=
&
gdiinterop
;
return
S_OK
;
}
dlls/dwrite/main.c
View file @
0ccdda12
...
...
@@ -26,6 +26,7 @@
#include "initguid.h"
#include "dwrite.h"
#include "dwrite_private.h"
#include "wine/debug.h"
WINE_DEFAULT_DEBUG_CHANNEL
(
dwrite
);
...
...
@@ -168,8 +169,8 @@ static HRESULT WINAPI dwritefactory_CreateTypography(IDWriteFactory *iface, IDWr
static
HRESULT
WINAPI
dwritefactory_GetGdiInterop
(
IDWriteFactory
*
iface
,
IDWriteGdiInterop
**
gdi_interop
)
{
FIXME
(
"(%p): stub
\n
"
,
gdi_interop
);
return
E_NOTIMPL
;
TRACE
(
"(%p)
\n
"
,
gdi_interop
);
return
create_gdiinterop
(
gdi_interop
)
;
}
static
HRESULT
WINAPI
dwritefactory_CreateTextLayout
(
IDWriteFactory
*
iface
,
WCHAR
const
*
string
,
...
...
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