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
ca55584b
Commit
ca55584b
authored
Apr 13, 2006
by
Jeff Latimer
Committed by
Alexandre Julliard
Apr 13, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
usp10: Add some tests to ScriptGetFontProperties.
parent
750102d1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
5 deletions
+22
-5
usp10.c
dlls/usp10/usp10.c
+22
-5
No files found.
dlls/usp10/usp10.c
View file @
ca55584b
...
...
@@ -124,10 +124,31 @@ HRESULT WINAPI ScriptGetProperties(const SCRIPT_PROPERTIES ***ppSp, int *piNumSc
*/
HRESULT
WINAPI
ScriptGetFontProperties
(
HDC
hdc
,
SCRIPT_CACHE
*
psc
,
SCRIPT_FONTPROPERTIES
*
sfp
)
{
HDC
phdc
;
Scriptcache
*
pScriptcache
;
FIXME
(
"%p,%p,%p
\n
"
,
hdc
,
psc
,
sfp
);
if
(
!
hdc
&&
!*
psc
)
{
TRACE
(
"No Script_Cache (psc) and no hdc. Ask for one. Hdc=%p, psc=%p
\n
"
,
hdc
,
*
psc
);
return
E_PENDING
;
}
else
if
(
hdc
&&
!*
psc
)
{
pScriptcache
=
HeapAlloc
(
GetProcessHeap
(),
HEAP_ZERO_MEMORY
,
sizeof
(
Scriptcache
)
);
pScriptcache
->
hdc
=
(
HDC
)
hdc
;
phdc
=
hdc
;
pScriptcache
->
HaveWidths
=
0
;
*
psc
=
(
Scriptcache
*
)
pScriptcache
;
}
else
if
(
*
psc
)
{
pScriptcache
=
(
Scriptcache
*
)
*
psc
;
phdc
=
pScriptcache
->
hdc
;
}
if
(
sfp
->
cBytes
!=
sizeof
(
SCRIPT_FONTPROPERTIES
))
return
E_INVALIDARG
;
/* return something sensible? */
if
(
NULL
!=
sfp
)
{
sfp
->
cBytes
=
sizeof
(
SCRIPT_FONTPROPERTIES
);
sfp
->
wgBlank
=
0
;
sfp
->
wgDefault
=
0
;
sfp
->
wgInvalid
=
0
;
...
...
@@ -431,10 +452,6 @@ HRESULT WINAPI ScriptPlace(HDC hdc, SCRIPT_CACHE *psc, const WORD *pwGlyphs,
* ScriptGetCMap (USP10.@)
*
*/
/***********************************************************************
* ScriptGetCMap (USP10.@)
*
*/
HRESULT
WINAPI
ScriptGetCMap
(
HDC
hdc
,
SCRIPT_CACHE
*
psc
,
const
WCHAR
*
pwcInChars
,
int
cChars
,
DWORD
dwFlags
,
WORD
*
pwOutGlyphs
)
{
...
...
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