A simple CPU rendered GUI IDE experience.
| -rw-r--r-- | src/main.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.rs b/src/main.rs index 874ec14..e3cbff5 100644 --- a/src/main.rs +++ b/src/main.rs @@ -450,7 +450,7 @@ pub(crate) fn entry(event_loop: EventLoop<()>) { window.set_ime_cursor_area( PhysicalPosition::new( ((cx + text.line_number_offset()) as f64 * (fw) as f64).round(), - (cy as f64 * (fh + ls * fac) as f64).floor()) + ((cy.saturating_sub(text.vo)) as f64 * (fh + ls * fac) as f64).floor()) , PhysicalSize::new(fw, fh) )}; let Some(surface) = surface else { |