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
401e32ee
Commit
401e32ee
authored
Jul 19, 2006
by
Hans Leidekker
Committed by
Alexandre Julliard
Jul 20, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
usp10: Implement and test ScriptCacheGetHeight.
parent
e8617b9f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
46 additions
and
1 deletion
+46
-1
usp10.c
dlls/usp10/usp10.c
+45
-0
usp10.spec
dlls/usp10/usp10.spec
+1
-1
No files found.
dlls/usp10/usp10.c
View file @
401e32ee
...
...
@@ -652,3 +652,48 @@ HRESULT WINAPI ScriptTextOut(const HDC hdc, SCRIPT_CACHE *psc, int x, int y, UIN
return
hr
;
}
}
/***********************************************************************
* ScriptCacheGetHeight (USP10.@)
*
* Retrieve the height of the font in the cache.
*
* PARAMS
* hdc [I] Device context.
* psc [I/O] Opaque pointer to a script cache.
* height [O] Receives font height.
*
* RETURNS
* Success: S_OK
* Failure: Non-zero HRESULT value.
*/
HRESULT
WINAPI
ScriptCacheGetHeight
(
HDC
hdc
,
SCRIPT_CACHE
*
psc
,
long
*
height
)
{
HDC
phdc
;
Scriptcache
*
pScriptcache
;
TEXTMETRICW
metric
;
TRACE
(
"(%p, %p, %p)
\n
"
,
hdc
,
psc
,
height
);
if
(
!
psc
||
!
height
)
return
E_INVALIDARG
;
if
(
!
hdc
)
return
E_PENDING
;
if
(
!*
psc
)
{
pScriptcache
=
HeapAlloc
(
GetProcessHeap
(),
HEAP_ZERO_MEMORY
,
sizeof
(
Scriptcache
));
pScriptcache
->
hdc
=
hdc
;
phdc
=
hdc
;
*
psc
=
pScriptcache
;
}
else
{
pScriptcache
=
*
psc
;
phdc
=
pScriptcache
->
hdc
;
}
/* FIXME: get this from the cache */
if
(
!
GetTextMetricsW
(
phdc
,
&
metric
))
return
E_INVALIDARG
;
*
height
=
metric
.
tmHeight
;
return
S_OK
;
}
dlls/usp10/usp10.spec
View file @
401e32ee
...
...
@@ -3,7 +3,7 @@
@ stub ScriptApplyLogicalWidth
@ stdcall ScriptBreak(ptr long ptr ptr)
@ stdcall ScriptCPtoX(long long long long ptr ptr ptr ptr ptr)
@ st
ub ScriptCacheGetHeight
@ st
dcall ScriptCacheGetHeight(ptr ptr ptr)
@ stdcall ScriptFreeCache(ptr)
@ stdcall ScriptGetCMap(ptr ptr ptr long long ptr)
@ stdcall ScriptGetFontProperties(long ptr ptr)
...
...
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