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
42b576e8
Commit
42b576e8
authored
May 23, 2006
by
Jeff Latimer
Committed by
Alexandre Julliard
May 23, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
usp10: Add stub for ScriptStringOut.
parent
a55da88d
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
59 additions
and
1 deletion
+59
-1
usp10.c
dlls/usp10/tests/usp10.c
+36
-0
usp10.c
dlls/usp10/usp10.c
+22
-0
usp10.spec
dlls/usp10/usp10.spec
+1
-1
No files found.
dlls/usp10/tests/usp10.c
View file @
42b576e8
...
...
@@ -447,6 +447,41 @@ void test_ScriptTextOut(void)
DestroyWindow
(
hwnd
);
}
static
void
test_ScriptString
(
void
)
{
HRESULT
hr
;
HDC
hdc
=
0
;
WCHAR
teststr
[
6
]
=
{
'T'
,
'e'
,
's'
,
't'
,
'1'
,
'\0'
};
void
*
pString
=
(
WCHAR
*
)
&
teststr
;
int
cString
=
5
;
int
cGlyphs
=
cString
*
2
+
16
;
int
iCharset
=
-
1
;
DWORD
dwFlags
=
SSA_GLYPHS
;
int
iReqWidth
=
100
;
SCRIPT_CONTROL
psControl
;
SCRIPT_STATE
psState
;
const
int
piDx
[
5
]
=
{
10
,
10
,
10
,
10
,
10
};
SCRIPT_TABDEF
pTabdef
;
const
BYTE
pbInClass
=
0
;
SCRIPT_STRING_ANALYSIS
pssa
;
int
iX
=
10
;
int
iY
=
100
;
UINT
uOptions
=
0
;
const
RECT
prc
=
{
0
,
50
,
100
,
100
};
int
iMinSel
=
0
;
int
iMaxSel
=
0
;
BOOL
fDisabled
=
FALSE
;
hr
=
ScriptStringAnalyse
(
hdc
,
pString
,
cString
,
cGlyphs
,
iCharset
,
dwFlags
,
iReqWidth
,
&
psControl
,
&
psState
,
piDx
,
&
pTabdef
,
pbInClass
,
&
pssa
);
ok
(
hr
==
E_INVALIDARG
,
"ScriptStringAnalyse Stub should return E_INVALIDARG not %08x
\n
"
,
(
unsigned
int
)
hr
);
hr
=
ScriptStringOut
(
pssa
,
iX
,
iY
,
uOptions
,
&
prc
,
iMinSel
,
iMaxSel
,
fDisabled
);
ok
(
hr
==
E_NOTIMPL
,
"ScriptStringOut Stub should return E_NOTIMPL not %08x
\n
"
,
(
unsigned
int
)
hr
);
hr
=
ScriptStringFree
(
&
pssa
);
ok
(
hr
==
S_OK
,
"ScriptStringFree Stub should return S_OK not %08x
\n
"
,
(
unsigned
int
)
hr
);
}
START_TEST
(
usp10
)
{
unsigned
short
pwOutGlyphs
[
256
];
...
...
@@ -455,4 +490,5 @@ START_TEST(usp10)
test_ScriptGetCMap
(
pwOutGlyphs
);
test_ScriptGetFontProperties
();
test_ScriptTextOut
();
test_ScriptString
();
}
dlls/usp10/usp10.c
View file @
42b576e8
...
...
@@ -295,6 +295,28 @@ HRESULT WINAPI ScriptStringAnalyse(HDC hdc,
}
/***********************************************************************
* ScriptStringOut (USP10.@)
*
*/
HRESULT
WINAPI
ScriptStringOut
(
SCRIPT_STRING_ANALYSIS
ssa
,
int
iX
,
int
iY
,
UINT
uOptions
,
const
RECT
*
prc
,
int
iMinSel
,
int
iMaxSel
,
BOOL
fDisabled
)
{
FIXME
(
"(%p,%d,%d,0x%1x,%p,%d,%d,%d): stub
\n
"
,
ssa
,
iX
,
iY
,
uOptions
,
prc
,
iMinSel
,
iMaxSel
,
fDisabled
);
if
(
!
ssa
)
{
return
E_INVALIDARG
;
}
return
E_NOTIMPL
;
}
/***********************************************************************
* ScriptStringFree (USP10.@)
*
*/
...
...
dlls/usp10/usp10.spec
View file @
42b576e8
...
...
@@ -22,7 +22,7 @@
@ stdcall ScriptStringFree(ptr)
@ stub ScriptStringGetLogicalWidths
@ stub ScriptStringGetOrder
@ st
ub ScriptStringOut
@ st
dcall ScriptStringOut(ptr long long long ptr long long long)
@ stub ScriptStringValidate
@ stub ScriptStringXtoCP
@ stub ScriptString_pLogAttr
...
...
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