Remove cursor snapping hack in text_editor

The `quad` shader now properly takes care of
snapping lines to the pixel grid.
This commit is contained in:
Héctor Ramón Jiménez 2024-08-12 02:54:22 +02:00
parent 03472dfd4f
commit be7d175388
No known key found for this signature in database
GPG key ID: 7CC46565708259A7

View file

@ -823,7 +823,7 @@ where
renderer.fill_quad( renderer.fill_quad(
renderer::Quad { renderer::Quad {
bounds: Rectangle { bounds: Rectangle {
x: clipped_cursor.x.floor(), x: clipped_cursor.x,
y: clipped_cursor.y, y: clipped_cursor.y,
width: clipped_cursor.width, width: clipped_cursor.width,
height: clipped_cursor.height, height: clipped_cursor.height,