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
9733856f
Commit
9733856f
authored
Jun 05, 2009
by
Tony Wasserka
Committed by
Alexandre Julliard
Jun 24, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3dx9: Implement ID3DXFont_GetDC.
parent
05843d47
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
3 deletions
+12
-3
Makefile.in
dlls/d3dx9_36/Makefile.in
+1
-1
d3dx9_36_private.h
dlls/d3dx9_36/d3dx9_36_private.h
+2
-0
font.c
dlls/d3dx9_36/font.c
+9
-2
No files found.
dlls/d3dx9_36/Makefile.in
View file @
9733856f
...
...
@@ -4,7 +4,7 @@ SRCDIR = @srcdir@
VPATH
=
@srcdir@
MODULE
=
d3dx9_36.dll
IMPORTLIB
=
d3dx9
IMPORTS
=
d3d9 d3dx8 kernel32
IMPORTS
=
d3d9 d3dx8
gdi32
kernel32
C_SRCS
=
\
d3dx9_36_main.c
\
...
...
dlls/d3dx9_36/d3dx9_36_private.h
View file @
9733856f
...
...
@@ -43,6 +43,8 @@ typedef struct ID3DXFontImpl
/* ID3DXFont fields */
IDirect3DDevice9
*
device
;
D3DXFONT_DESCW
desc
;
HDC
hdc
;
}
ID3DXFontImpl
;
...
...
dlls/d3dx9_36/font.c
View file @
9733856f
...
...
@@ -55,6 +55,7 @@ static ULONG WINAPI ID3DXFontImpl_Release(LPD3DXFONT iface)
TRACE
(
"(%p): ReleaseRef to %d
\n
"
,
This
,
ref
);
if
(
ref
==
0
)
{
DeleteDC
(
This
->
hdc
);
IDirect3DDevice9_Release
(
This
->
device
);
HeapFree
(
GetProcessHeap
(),
0
,
This
);
}
...
...
@@ -113,8 +114,8 @@ static BOOL WINAPI ID3DXFontImpl_GetTextMetricsW(LPD3DXFONT iface, TEXTMETRICW *
static
HDC
WINAPI
ID3DXFontImpl_GetDC
(
LPD3DXFONT
iface
)
{
ID3DXFontImpl
*
This
=
(
ID3DXFontImpl
*
)
iface
;
FIXME
(
"(%p): stub
\n
"
,
This
);
return
NULL
;
TRACE
(
"(%p)
\n
"
,
This
);
return
This
->
hdc
;
}
static
HRESULT
WINAPI
ID3DXFontImpl_GetGlyphData
(
LPD3DXFONT
iface
,
UINT
glyph
,
LPDIRECT3DTEXTURE9
*
texture
,
RECT
*
blackbox
,
POINT
*
cellinc
)
...
...
@@ -300,6 +301,12 @@ HRESULT WINAPI D3DXCreateFontIndirectW(LPDIRECT3DDEVICE9 device, CONST D3DXFONT_
object
->
device
=
device
;
object
->
desc
=*
desc
;
object
->
hdc
=
CreateCompatibleDC
(
NULL
);
if
(
!
object
->
hdc
)
{
HeapFree
(
GetProcessHeap
(),
0
,
object
);
return
D3DXERR_INVALIDDATA
;
}
IDirect3DDevice9_AddRef
(
device
);
*
font
=
(
LPD3DXFONT
)
object
;
...
...
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