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
7819ce61
Commit
7819ce61
authored
Jul 31, 2012
by
Aric Stewart
Committed by
Alexandre Julliard
Aug 13, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
usp10: Use cached values in GPOS functions.
parent
ef5daa9a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
11 deletions
+2
-11
shape.c
dlls/usp10/shape.c
+2
-11
No files found.
dlls/usp10/shape.c
View file @
7819ce61
...
...
@@ -3285,9 +3285,6 @@ void SHAPE_ApplyOpenTypePositions(HDC hdc, ScriptCache *psc, SCRIPT_ANALYSIS *ps
const
TEXTRANGE_PROPERTIES
*
rpRangeProperties
;
int
i
;
INT
dirL
;
LPOUTLINETEXTMETRICW
lpotm
;
LOGFONTW
lf
;
HFONT
hfont
;
rpRangeProperties
=
&
ShapingData
[
psa
->
eScript
].
defaultGPOSTextRange
;
...
...
@@ -3296,15 +3293,9 @@ void SHAPE_ApplyOpenTypePositions(HDC hdc, ScriptCache *psc, SCRIPT_ANALYSIS *ps
load_ot_tables
(
hdc
,
psc
);
if
(
!
psc
->
GPOS_Table
)
if
(
!
psc
->
GPOS_Table
||
!
psc
->
otm
)
return
;
i
=
GetOutlineTextMetricsW
(
hdc
,
0
,
NULL
);
lpotm
=
HeapAlloc
(
GetProcessHeap
(),
0
,
i
);
GetOutlineTextMetricsW
(
hdc
,
i
,
lpotm
);
hfont
=
GetCurrentObject
(
hdc
,
OBJ_FONT
);
GetObjectW
(
hfont
,
sizeof
(
lf
),
&
lf
);
if
(
!
psa
->
fLogicalOrder
&&
psa
->
fRTL
)
dirL
=
-
1
;
else
...
...
@@ -3320,7 +3311,7 @@ void SHAPE_ApplyOpenTypePositions(HDC hdc, ScriptCache *psc, SCRIPT_ANALYSIS *ps
if
(
!
feature
)
continue
;
GPOS_apply_feature
(
lpotm
,
&
lf
,
piAdvance
,
psc
->
GPOS_Table
,
feature
,
pwGlyphs
,
dirL
,
cGlyphs
,
pGoffset
);
GPOS_apply_feature
(
psc
->
otm
,
&
psc
->
lf
,
piAdvance
,
psc
->
GPOS_Table
,
feature
,
pwGlyphs
,
dirL
,
cGlyphs
,
pGoffset
);
}
}
}
...
...
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