Skip to content
Myr

render: fix release builds

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Daniel Eklöf · committed by Daniel Eklöf · parent 2650bd5 · Browse files · 1 file+9 added−2 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+9 added−2 removed

  • other:+9 added−2 removed

1 file+9 added−2 removed

modified:render.c+9 added-2 removed
34 unmodified lines
3536 cairo_status_t cr_status = cairo_scaled_font_text_to_glyphs(37 render->regular_font, 0, 0, text, -1, &glyphs, &num_glyphs,38 &clusters, &num_clusters, &cluster_flags);39 assert(cr_status == CAIRO_STATUS_SUCCESS);39 if (cr_status != CAIRO_STATUS_SUCCESS) {40 LOG_ERR("cairo failure: TODO: error message");41 return;42 }4344 cairo_text_extents_t extents;45 cairo_scaled_font_glyph_extents(46 render->regular_font, glyphs, num_glyphs, &extents);
61 unmodified lines
108109 cairo_status_t cr_status = cairo_scaled_font_text_to_glyphs(110 font, 0, 0, text, len, &glyphs, &num_glyphs,111 &clusters, &num_clusters, &cluster_flags);109 assert(cr_status == CAIRO_STATUS_SUCCESS);112113 if (cr_status != CAIRO_STATUS_SUCCESS) {114 LOG_ERR("cairo failure: TODO: error message");115 return;116 }117118 cairo_text_extents_t extents;119 cairo_scaled_font_glyph_extents(font, glyphs, num_glyphs, &extents);120121 for (int j = 0; j < num_glyphs; j++) {
122 unmodified lines