提交 ed62551d 编写于 作者: A Alfie John 提交者: Khaled Hosny

Adding leading space for code example

上级 3e332544
......@@ -275,14 +275,14 @@
</orderedlist>
<programlisting language="C">
for (i = 0; i &lt; glyph_count; ++i) {
glyphid = glyph_info[i].codepoint;
x_offset = glyph_pos[i].x_offset / 64.0;
y_offset = glyph_pos[i].y_offset / 64.0;
x_advance = glyph_pos[i].x_advance / 64.0;
y_advance = glyph_pos[i].y_advance / 64.0;
draw_glyph(glyphid, cursor_x + x_offset, cursor_y + y_offset);
cursor_x += x_advance;
cursor_y += y_advance;
&nbsp;&nbsp;glyphid = glyph_info[i].codepoint;
&nbsp;&nbsp;x_offset = glyph_pos[i].x_offset / 64.0;
&nbsp;&nbsp;y_offset = glyph_pos[i].y_offset / 64.0;
&nbsp;&nbsp;x_advance = glyph_pos[i].x_advance / 64.0;
&nbsp;&nbsp;y_advance = glyph_pos[i].y_advance / 64.0;
&nbsp;&nbsp;draw_glyph(glyphid, cursor_x + x_offset, cursor_y + y_offset);
&nbsp;&nbsp;cursor_x += x_advance;
&nbsp;&nbsp;cursor_y += y_advance;
}
</programlisting>
<orderedlist numeration="arabic">
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册