Adding leading space for code example
This commit is contained in:
parent
3e332544db
commit
ed62551d67
|
@ -275,14 +275,14 @@
|
||||||
</orderedlist>
|
</orderedlist>
|
||||||
<programlisting language="C">
|
<programlisting language="C">
|
||||||
for (i = 0; i < glyph_count; ++i) {
|
for (i = 0; i < glyph_count; ++i) {
|
||||||
glyphid = glyph_info[i].codepoint;
|
glyphid = glyph_info[i].codepoint;
|
||||||
x_offset = glyph_pos[i].x_offset / 64.0;
|
x_offset = glyph_pos[i].x_offset / 64.0;
|
||||||
y_offset = glyph_pos[i].y_offset / 64.0;
|
y_offset = glyph_pos[i].y_offset / 64.0;
|
||||||
x_advance = glyph_pos[i].x_advance / 64.0;
|
x_advance = glyph_pos[i].x_advance / 64.0;
|
||||||
y_advance = glyph_pos[i].y_advance / 64.0;
|
y_advance = glyph_pos[i].y_advance / 64.0;
|
||||||
draw_glyph(glyphid, cursor_x + x_offset, cursor_y + y_offset);
|
draw_glyph(glyphid, cursor_x + x_offset, cursor_y + y_offset);
|
||||||
cursor_x += x_advance;
|
cursor_x += x_advance;
|
||||||
cursor_y += y_advance;
|
cursor_y += y_advance;
|
||||||
}
|
}
|
||||||
</programlisting>
|
</programlisting>
|
||||||
<orderedlist numeration="arabic">
|
<orderedlist numeration="arabic">
|
||||||
|
|
Loading…
Reference in New Issue