Skip to content

Commit d6d0414

Browse files
committed
GLUI: TextRenderer: minor rename refactoring
Signed-off-by: Stefan Westerfeld <[email protected]>
1 parent 8581b4b commit d6d0414

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

glui/smtextrenderer.cc

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -267,13 +267,13 @@ TextRenderer::text_to_surface (double ui_scaling, bool bold, const string& text,
267267
if (mode == Mode::EXTENTS_ONLY)
268268
return nullptr;
269269

270-
cairo_surface_t *glyph_surface = cairo_image_surface_create (CAIRO_FORMAT_A8, bb_width, bb_height);
270+
cairo_surface_t *text_surface = cairo_image_surface_create (CAIRO_FORMAT_A8, bb_width, bb_height);
271271

272272
int xx = 0;
273273
for (auto glyph : glyphs)
274274
{
275-
unsigned char *dst = cairo_image_surface_get_data (glyph_surface);
276-
auto dst_stride = cairo_image_surface_get_stride (glyph_surface);
275+
unsigned char *dst = cairo_image_surface_get_data (text_surface);
276+
auto dst_stride = cairo_image_surface_get_stride (text_surface);
277277
unsigned char *src = glyph->bitmap.data();
278278
auto src_width = glyph->bitmap_width;
279279

@@ -287,8 +287,8 @@ TextRenderer::text_to_surface (double ui_scaling, bool bold, const string& text,
287287
}
288288
xx += glyph->advance_x;
289289
}
290-
cairo_surface_mark_dirty (glyph_surface);
290+
cairo_surface_mark_dirty (text_surface);
291291

292-
return glyph_surface;
292+
return text_surface;
293293
}
294294

0 commit comments

Comments
 (0)