summaryrefslogtreecommitdiff
path: root/util
diff options
context:
space:
mode:
authorBehdad Esfahbod <behdad@behdad.org>2011-09-08 16:50:24 -0400
committerBehdad Esfahbod <behdad@behdad.org>2011-09-08 16:50:24 -0400
commit516857eb51bbb79ff4adf44e3fefbf460f9ee8f8 (patch)
tree4eea7a59f53633c613078c8819f3fd24e54a0b35 /util
parent4f4b114a5592c2f5d128ee795f159b438ad97829 (diff)
[util] Simplify more
Diffstat (limited to 'util')
-rw-r--r--util/options.hh9
1 files changed, 3 insertions, 6 deletions
diff --git a/util/options.hh b/util/options.hh
index 2b77d7b7..a6eea530 100644
--- a/util/options.hh
+++ b/util/options.hh
@@ -64,12 +64,9 @@ extern struct shape_options_t
}
void setup_buffer (hb_buffer_t *buffer) {
- if (direction)
- hb_buffer_set_direction (buffer, hb_direction_from_string (direction, -1));
- if (script)
- hb_buffer_set_script (buffer, hb_script_from_string (script, -1));
- if (language)
- hb_buffer_set_language (buffer, hb_language_from_string (language, -1));
+ hb_buffer_set_direction (buffer, hb_direction_from_string (direction, -1));
+ hb_buffer_set_script (buffer, hb_script_from_string (script, -1));
+ hb_buffer_set_language (buffer, hb_language_from_string (language, -1));
}
bool shape (hb_font_t *font, hb_buffer_t *buffer) {