projects
/
platform
/
upstream
/
libHarfBuzzSharp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3d7c555
)
Minor
author
Behdad Esfahbod
<behdad@behdad.org>
Tue, 7 Aug 2018 16:44:01 +0000
(09:44 -0700)
committer
Behdad Esfahbod
<behdad@behdad.org>
Tue, 7 Aug 2018 16:44:36 +0000
(09:44 -0700)
src/hb-font-private.hh
patch
|
blob
|
history
diff --git
a/src/hb-font-private.hh
b/src/hb-font-private.hh
index
6862e06
..
c1981dd
100644
(file)
--- a/
src/hb-font-private.hh
+++ b/
src/hb-font-private.hh
@@
-370,13
+370,11
@@
struct hb_font_t
hb_direction_t direction,
hb_position_t *x, hb_position_t *y)
{
- if (likely (HB_DIRECTION_IS_HORIZONTAL (direction))) {
+ *x = *y = 0;
+ if (likely (HB_DIRECTION_IS_HORIZONTAL (direction)))
*x = get_glyph_h_advance (glyph);
- *y = 0;
- } else {
- *x = 0;
+ else
*y = get_glyph_v_advance (glyph);
- }
}
inline void guess_v_origin_minus_h_origin (hb_codepoint_t glyph,