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
cd6fe7df
Commit
cd6fe7df
authored
Dec 23, 2006
by
Hans Leidekker
Committed by
Alexandre Julliard
Dec 24, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
usp10: Implement ScriptString_pLogAttr.
parent
960372f2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
28 additions
and
1 deletion
+28
-1
usp10.c
dlls/usp10/usp10.c
+27
-0
usp10.spec
dlls/usp10/usp10.spec
+1
-1
No files found.
dlls/usp10/usp10.c
View file @
cd6fe7df
...
...
@@ -165,6 +165,7 @@ typedef struct {
SCRIPT_ITEM
*
pItem
;
int
numItems
;
StringGlyphs
*
glyphs
;
SCRIPT_LOGATTR
*
logattrs
;
SIZE
*
sz
;
}
StringAnalysis
;
...
...
@@ -589,6 +590,9 @@ HRESULT WINAPI ScriptStringAnalyse(HDC hdc,
psState
,
analysis
->
pItem
,
&
analysis
->
numItems
);
}
if
((
analysis
->
logattrs
=
HeapAlloc
(
GetProcessHeap
(),
0
,
sizeof
(
SCRIPT_LOGATTR
)
*
cString
)))
ScriptBreak
(
pString
,
cString
,
(
SCRIPT_STRING_ANALYSIS
)
analysis
,
analysis
->
logattrs
);
analysis
->
glyphs
=
HeapAlloc
(
GetProcessHeap
(),
HEAP_ZERO_MEMORY
,
sizeof
(
StringGlyphs
)
*
analysis
->
numItems
);
sc
=
HeapAlloc
(
GetProcessHeap
(),
HEAP_ZERO_MEMORY
,
sizeof
(
SCRIPT_CACHE
));
...
...
@@ -786,6 +790,7 @@ HRESULT WINAPI ScriptStringFree(SCRIPT_STRING_ANALYSIS *pssa)
HeapFree
(
GetProcessHeap
(),
0
,
analysis
->
glyphs
);
HeapFree
(
GetProcessHeap
(),
0
,
analysis
->
pItem
);
HeapFree
(
GetProcessHeap
(),
0
,
analysis
->
logattrs
);
HeapFree
(
GetProcessHeap
(),
0
,
analysis
->
sz
);
HeapFree
(
GetProcessHeap
(),
0
,
analysis
);
...
...
@@ -1538,3 +1543,25 @@ const SIZE * WINAPI ScriptString_pSize(SCRIPT_STRING_ANALYSIS ssa)
}
return
analysis
->
sz
;
}
/***********************************************************************
* ScriptString_pLogAttr (USP10.@)
*
* Retrieve logical attributes of an analysed string.
*
* PARAMS
* ssa [I] string analysis.
*
* RETURNS
* Success: Pointer to an array of SCRIPT_LOGATTR structures.
* Failure: NULL
*/
const
SCRIPT_LOGATTR
*
WINAPI
ScriptString_pLogAttr
(
SCRIPT_STRING_ANALYSIS
ssa
)
{
StringAnalysis
*
analysis
=
ssa
;
TRACE
(
"(%p)
\n
"
,
ssa
);
if
(
!
analysis
)
return
NULL
;
return
analysis
->
logattrs
;
}
dlls/usp10/usp10.spec
View file @
cd6fe7df
...
...
@@ -25,7 +25,7 @@
@ stdcall ScriptStringOut(ptr long long long ptr long long long)
@ stdcall ScriptStringValidate(ptr)
@ stdcall ScriptStringXtoCP(ptr long ptr ptr)
@ st
ub ScriptString_pLogAttr
@ st
dcall ScriptString_pLogAttr(ptr)
@ stdcall ScriptString_pSize(ptr)
@ stub ScriptString_pcOutChars
@ stdcall ScriptTextOut(ptr ptr long long long ptr ptr ptr long ptr long ptr 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