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
af67bc86
Commit
af67bc86
authored
Apr 30, 2006
by
Jeff Latimer
Committed by
Alexandre Julliard
May 08, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
usp10: Add ScriptTextOut functionality and restructure tests.
parent
66ab4571
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
41 additions
and
6 deletions
+41
-6
usp10.c
dlls/usp10/tests/usp10.c
+0
-0
usp10.c
dlls/usp10/usp10.c
+41
-6
No files found.
dlls/usp10/tests/usp10.c
View file @
af67bc86
This diff is collapsed.
Click to expand it.
dlls/usp10/usp10.c
View file @
af67bc86
...
...
@@ -129,7 +129,6 @@ HRESULT WINAPI ScriptGetFontProperties(HDC hdc, SCRIPT_CACHE *psc, SCRIPT_FONTPR
if
(
!
psc
||
!
sfp
)
return
E_INVALIDARG
;
if
(
!
hdc
&&
!*
psc
)
{
TRACE
(
"No Script_Cache (psc) and no hdc. Ask for one. Hdc=%p, psc=%p
\n
"
,
hdc
,
*
psc
);
return
E_PENDING
;
...
...
@@ -466,7 +465,11 @@ HRESULT WINAPI ScriptGetCMap(HDC hdc, SCRIPT_CACHE *psc, const WCHAR *pwcInChars
int
cnt
;
DWORD
hr
;
Scriptcache
*
pScriptcache
;
FIXME
(
"(%p,%p,%s,%d,0x%lx,%p): semi-stub
\n
"
,
hdc
,
psc
,
debugstr_wn
(
pwcInChars
,
cChars
),
cChars
,
dwFlags
,
pwOutGlyphs
);
FIXME
(
"(%p,%p,%s,%d,0x%lx,%p): semi-stub
\n
"
,
hdc
,
psc
,
debugstr_wn
(
pwcInChars
,
cChars
),
cChars
,
dwFlags
,
pwOutGlyphs
);
if
(
!
psc
||
!
pwcInChars
||
!
pwOutGlyphs
)
return
E_INVALIDARG
;
if
(
!
hdc
&&
!*
psc
)
{
TRACE
(
"No Script_Cache (psc) and no hdc. Ask for one. Hdc=%p, psc=%p
\n
"
,
hdc
,
*
psc
);
...
...
@@ -507,8 +510,40 @@ HRESULT WINAPI ScriptTextOut(const HDC hdc, SCRIPT_CACHE *psc, int x, int y, UIN
int
iReserved
,
const
WORD
*
pwGlyphs
,
int
cGlyphs
,
const
int
*
piAdvance
,
const
int
*
piJustify
,
const
GOFFSET
*
pGoffset
)
{
FIXME
(
"(%p, %p, %d, %d, %04x, %p, %p, %p, %d, %p, %d, %p, %p, %p): stub
\n
"
,
hdc
,
psc
,
x
,
y
,
fuOptions
,
lprc
,
psa
,
pwcReserved
,
iReserved
,
pwGlyphs
,
cGlyphs
,
piAdvance
,
piJustify
,
pGoffset
);
return
E_NOTIMPL
;
HDC
phdc
;
DWORD
hr
;
Scriptcache
*
pScriptcache
;
TRACE
(
"(%p, %p, %d, %d, %04x, %p, %p, %p, %d, %p, %d, %p, %p, %p): stub
\n
"
,
hdc
,
psc
,
x
,
y
,
fuOptions
,
lprc
,
psa
,
pwcReserved
,
iReserved
,
pwGlyphs
,
cGlyphs
,
piAdvance
,
piJustify
,
pGoffset
);
if
(
!
psc
||
!
piAdvance
||
!
psa
||
!
pwGlyphs
)
return
E_INVALIDARG
;
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
;
phdc
=
hdc
;
*
psc
=
pScriptcache
;
}
else
if
(
*
psc
)
{
pScriptcache
=
*
psc
;
phdc
=
pScriptcache
->
hdc
;
}
fuOptions
&=
ETO_CLIPPED
+
ETO_OPAQUE
;
if
(
!
psa
->
fNoGlyphIndex
)
/* Have Glyphs? */
fuOptions
|=
ETO_GLYPH_INDEX
;
/* Say don't do tranlastion to glyph */
hr
=
ExtTextOutW
(
phdc
,
x
,
y
,
fuOptions
,
lprc
,
pwGlyphs
,
cGlyphs
,
NULL
);
if
(
hr
)
return
S_OK
;
else
{
FIXME
(
"ExtTextOut returned:=%ld
\n
"
,
hr
);
return
hr
;
}
}
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