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
5f529fe0
Commit
5f529fe0
authored
Jun 07, 2006
by
Jeff Latimer
Committed by
Alexandre Julliard
Jun 08, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
usp10: Add stubs for ScriptCPtoX, ScriptXtoCP and ScriptBreak and some basic tests.
parent
c0fcba79
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
77 additions
and
5 deletions
+77
-5
usp10.c
dlls/usp10/tests/usp10.c
+14
-0
usp10.c
dlls/usp10/usp10.c
+60
-2
usp10.spec
dlls/usp10/usp10.spec
+3
-3
No files found.
dlls/usp10/tests/usp10.c
View file @
5f529fe0
...
...
@@ -352,6 +352,11 @@ void test_ScriptTextOut(void)
GOFFSET
pGoffset
[
256
];
ABC
pABC
[
256
];
RECT
rect
;
int
piX
;
int
iCP
=
1
;
BOOL
fTrailing
=
FALSE
;
SCRIPT_LOGATTR
*
psla
;
SCRIPT_LOGATTR
sla
[
256
];
/* We need a valid HDC to drive a lot of Script functions which requires the following *
* to set up for the tests. */
...
...
@@ -438,6 +443,15 @@ void test_ScriptTextOut(void)
ok
(
hr
==
0
,
"ScriptTextOut should return 0 not (%08x)
\n
"
,
(
unsigned
int
)
hr
);
ok
(
psc
!=
NULL
,
"psc should not be null and have SCRIPT_CACHE buffer address
\n
"
);
iCP
=
1
;
hr
=
ScriptCPtoX
(
iCP
,
fTrailing
,
cChars
,
pcGlyphs
,
(
const
WORD
*
)
&
pwLogClust
,
(
const
SCRIPT_VISATTR
*
)
&
psva
,
(
const
int
*
)
&
piAdvance
,
&
pItem
[
0
].
a
,
&
piX
);
ok
(
hr
==
S_OK
,
"ScriptCPtoX Stub should return S_OK not %08x
\n
"
,
(
unsigned
int
)
hr
);
psla
=
(
SCRIPT_LOGATTR
*
)
&
sla
;
hr
=
ScriptBreak
(
TestItem1
,
cChars
,
&
pItem
[
0
].
a
,
psla
);
ok
(
hr
==
S_OK
,
"ScriptBreak Stub should return S_OK not %08x
\n
"
,
(
unsigned
int
)
hr
);
/* Clean up and go */
ScriptFreeCache
(
&
psc
);
ok
(
psc
==
NULL
,
"Expected psc to be NULL, got %p
\n
"
,
psc
);
...
...
dlls/usp10/usp10.c
View file @
5f529fe0
...
...
@@ -321,8 +321,66 @@ HRESULT WINAPI ScriptStringOut(SCRIPT_STRING_ANALYSIS ssa,
*
*/
HRESULT
WINAPI
ScriptStringFree
(
SCRIPT_STRING_ANALYSIS
*
pssa
)
{
FIXME
(
"(%p): stub
\n
"
,
pssa
);
return
S_OK
;
FIXME
(
"(%p): stub
\n
"
,
pssa
);
return
S_OK
;
}
/***********************************************************************
* ScriptCPtoX (USP10.@)
*
*/
HRESULT
WINAPI
ScriptCPtoX
(
int
iCP
,
BOOL
fTrailing
,
int
cChars
,
int
cGlyphs
,
const
WORD
*
pwLogClust
,
const
SCRIPT_VISATTR
*
psva
,
const
int
*
piAdvance
,
const
SCRIPT_ANALYSIS
*
psa
,
int
*
piX
)
{
FIXME
(
"(%d,%d,%d,%d,%p,%p,%p,%p,%p): stub
\n
"
,
iCP
,
fTrailing
,
cChars
,
cGlyphs
,
pwLogClust
,
psva
,
piAdvance
,
psa
,
piX
);
*
piX
=
1
;
/* Return something in range */
return
S_OK
;
}
/***********************************************************************
* ScriptXtoCP (USP10.@)
*
*/
HRESULT
WINAPI
ScriptXtoCP
(
int
iX
,
int
cChars
,
int
cGlyphs
,
const
WORD
*
pwLogClust
,
const
SCRIPT_VISATTR
*
psva
,
const
int
*
piAdvance
,
const
SCRIPT_ANALYSIS
*
psa
,
int
*
piCP
,
int
*
piTrailing
)
{
FIXME
(
"(%d,%d,%d,%p,%p,%p,%p,%p,%p): stub
\n
"
,
iX
,
cChars
,
cGlyphs
,
pwLogClust
,
psva
,
piAdvance
,
psa
,
piCP
,
piTrailing
);
*
piCP
=
1
;
/* Return something in range */
*
piTrailing
=
0
;
return
S_OK
;
}
/***********************************************************************
* ScriptBreak (USP10.@)
*
*/
HRESULT
WINAPI
ScriptBreak
(
const
WCHAR
*
pwcChars
,
int
cChars
,
const
SCRIPT_ANALYSIS
*
psa
,
SCRIPT_LOGATTR
*
psla
)
{
FIXME
(
"(%p,%d,%p,%p): stub
\n
"
,
pwcChars
,
cChars
,
psa
,
psla
);
return
S_OK
;
}
/***********************************************************************
...
...
dlls/usp10/usp10.spec
View file @
5f529fe0
@ stub LpkPresent
@ stdcall ScriptApplyDigitSubstitution(ptr ptr ptr)
@ stub ScriptApplyLogicalWidth
@ st
ub ScriptBreak
@ st
ub ScriptCPtoX
@ st
dcall ScriptBreak(ptr long ptr ptr)
@ st
dcall ScriptCPtoX(long long long long ptr ptr ptr ptr ptr)
@ stub ScriptCacheGetHeight
@ stdcall ScriptFreeCache(ptr)
@ stdcall ScriptGetCMap(ptr ptr ptr long long ptr)
...
...
@@ -29,7 +29,7 @@
@ stub ScriptString_pSize
@ stub ScriptString_pcOutChars
@ stdcall ScriptTextOut(ptr ptr long long long ptr ptr ptr long ptr long ptr ptr ptr)
@ st
ub ScriptXtoCP
@ st
dcall ScriptXtoCP(long long long ptr ptr ptr ptr ptr ptr)
@ stub UspAllocCache
@ stub UspAllocTemp
@ stub UspFreeMem
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