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
05843d47
Commit
05843d47
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_GetDesc.
parent
e36028b4
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
2 deletions
+13
-2
d3dx9_36_private.h
dlls/d3dx9_36/d3dx9_36_private.h
+1
-0
font.c
dlls/d3dx9_36/font.c
+12
-2
No files found.
dlls/d3dx9_36/d3dx9_36_private.h
View file @
05843d47
...
...
@@ -42,6 +42,7 @@ typedef struct ID3DXFontImpl
/* ID3DXFont fields */
IDirect3DDevice9
*
device
;
D3DXFONT_DESCW
desc
;
}
ID3DXFontImpl
;
...
...
dlls/d3dx9_36/font.c
View file @
05843d47
...
...
@@ -76,14 +76,23 @@ static HRESULT WINAPI ID3DXFontImpl_GetDevice(LPD3DXFONT iface, LPDIRECT3DDEVICE
static
HRESULT
WINAPI
ID3DXFontImpl_GetDescA
(
LPD3DXFONT
iface
,
D3DXFONT_DESCA
*
desc
)
{
ID3DXFontImpl
*
This
=
(
ID3DXFontImpl
*
)
iface
;
FIXME
(
"(%p): stub
\n
"
,
This
);
TRACE
(
"(%p)
\n
"
,
This
);
if
(
!
desc
)
return
D3DERR_INVALIDCALL
;
memcpy
(
desc
,
&
This
->
desc
,
FIELD_OFFSET
(
D3DXFONT_DESCA
,
FaceName
));
WideCharToMultiByte
(
CP_ACP
,
0
,
This
->
desc
.
FaceName
,
-
1
,
desc
->
FaceName
,
sizeof
(
desc
->
FaceName
)
/
sizeof
(
CHAR
),
NULL
,
NULL
);
return
D3D_OK
;
}
static
HRESULT
WINAPI
ID3DXFontImpl_GetDescW
(
LPD3DXFONT
iface
,
D3DXFONT_DESCW
*
desc
)
{
ID3DXFontImpl
*
This
=
(
ID3DXFontImpl
*
)
iface
;
FIXME
(
"(%p): stub
\n
"
,
This
);
TRACE
(
"(%p)
\n
"
,
This
);
if
(
!
desc
)
return
D3DERR_INVALIDCALL
;
*
desc
=
This
->
desc
;
return
D3D_OK
;
}
...
...
@@ -289,6 +298,7 @@ HRESULT WINAPI D3DXCreateFontIndirectW(LPDIRECT3DDEVICE9 device, CONST D3DXFONT_
object
->
lpVtbl
=&
D3DXFont_Vtbl
;
object
->
ref
=
1
;
object
->
device
=
device
;
object
->
desc
=*
desc
;
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