summaryrefslogtreecommitdiff
path: root/src/bin/options_font.c
diff options
context:
space:
mode:
authorBoris Faure <billiob@gmail.com>2020-04-17 23:09:07 +0200
committerBoris Faure <billiob@gmail.com>2020-04-17 23:09:07 +0200
commit0b488535971aaa43596529920d8b37c99d554be1 (patch)
tree4abd468de68652bd7952a6686febba5f9134f6af /src/bin/options_font.c
parent3172c2cf30cf31b66d6f1b3262f3d99cf42757da (diff)
reduce scope of variables
Diffstat (limited to 'src/bin/options_font.c')
-rw-r--r--src/bin/options_font.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bin/options_font.c b/src/bin/options_font.c
index 3945f6e..696c3ef 100644
--- a/src/bin/options_font.c
+++ b/src/bin/options_font.c
@@ -236,7 +236,6 @@ _cb_op_font_preview_delayed_eval(void *data)
236 goto done; 236 goto done;
237 if (ELM_RECTS_INTERSECT(ox, oy, ow, oh, vx, vy, vw, vh)) 237 if (ELM_RECTS_INTERSECT(ox, oy, ow, oh, vx, vy, vw, vh))
238 { 238 {
239 char buf[4096];
240 int r, g, b, a; 239 int r, g, b, a;
241 Evas *evas = evas_object_evas_get(obj); 240 Evas *evas = evas_object_evas_get(obj);
242 Evas_Object *textgrid = termio_textgrid_get(f->ctx->term); 241 Evas_Object *textgrid = termio_textgrid_get(f->ctx->term);
@@ -250,6 +249,7 @@ _cb_op_font_preview_delayed_eval(void *data)
250 evas_object_scale_set(o, elm_config_scale_get()); 249 evas_object_scale_set(o, elm_config_scale_get());
251 if (f->bitmap) 250 if (f->bitmap)
252 { 251 {
252 char buf[4096];
253 snprintf(buf, sizeof(buf), "%s/fonts/%s", 253 snprintf(buf, sizeof(buf), "%s/fonts/%s",
254 elm_app_data_dir_get(), f->full_name); 254 elm_app_data_dir_get(), f->full_name);
255 evas_object_text_font_set(o, buf, config->font.size); 255 evas_object_text_font_set(o, buf, config->font.size);