فهرست منبع

[free_glyph.h] Using app cbuf

Vinicius Teshima 1 سال پیش
والد
کامیت
e9a4932bf9
1فایلهای تغییر یافته به همراه4 افزوده شده و 4 حذف شده
  1. 4 4
      src/free_glyph.h

+ 4 - 4
src/free_glyph.h

@@ -98,9 +98,9 @@ float
 fga_calc_col_buffer(const struct free_glyph_atlas *fga,
 		    const struct app *app)
 {
-	return fga_calc_col(fga, app, app->buf.data.items,
-					  app->buf.data.size, vec2fs(0),
-					  app->buf.cur);
+	return fga_calc_col(fga, app, app->cbuf->data.items,
+					  app->cbuf->data.size, vec2fs(0),
+					  app->cbuf->cur);
 }
 
 void
@@ -147,7 +147,7 @@ void
 fga_calc_buffer(struct free_glyph_atlas *fga, struct simple_render *sr,
 		const struct app *app, struct vec2f size)
 {
-	fga_calc(fga, sr, app, app->buf.data.items, app->buf.data.size,
+	fga_calc(fga, sr, app, app->cbuf->data.items, app->cbuf->data.size,
 		 size, vec4fs(1), vec4fs(0));
 }