rendering with virtual whitespace skips whitespace on first line correctly now
parent
a29af32a42
commit
da7a09ca0d
|
@ -895,7 +895,10 @@ buffer_render_data(Buffer_Render_State *S_ptr, Buffer_Render_Params params, f32
|
|||
S.write.x_min = params.port_x;
|
||||
S.write.x_max = params.port_x + params.clip_w;
|
||||
|
||||
if (params.adv){
|
||||
if (params.virtual_white){
|
||||
S.skipping_whitespace = 1;
|
||||
}
|
||||
|
||||
S.i = params.start_cursor.pos;
|
||||
if (buffer_stringify_loop(&S.stream, params.buffer, S.i, size)){
|
||||
do{
|
||||
|
@ -1010,15 +1013,6 @@ buffer_render_data(Buffer_Render_State *S_ptr, Buffer_Render_Params params, f32
|
|||
S.write = write_render_item(S.write, size, ' ', 0);
|
||||
}
|
||||
}
|
||||
}
|
||||
else{
|
||||
f32 zero = 0;
|
||||
S.write.adv = &zero;
|
||||
|
||||
if (S.write.item < item_end){
|
||||
S.write = write_render_item(S.write, size, 0, 0);
|
||||
}
|
||||
}
|
||||
|
||||
*params.count = (i32)(S.write.item - params.items);
|
||||
assert_4tech(*params.count <= params.max);
|
||||
|
|
Loading…
Reference in New Issue