display blank rect on correct line

This commit is contained in:
Anton-4 2021-08-20 15:48:09 +02:00
parent 5ed5e2e6ee
commit 5366c30d4a

View File

@ -157,7 +157,7 @@ fn markup_to_wgpu_helper<'a>(
top_left_coords: (
code_style.txt_coords.x + (txt_row_col.1 as f32) * char_width,
code_style.txt_coords.y
+ (txt_row_col.0 as f32) * char_height
+ ((txt_row_col.0 - 1) as f32) * char_height
+ 0.1 * char_height,
)
.into(),