diff --git a/.ok b/.ok new file mode 100644 index 0000000..91c34e8 --- /dev/null +++ b/.ok @@ -0,0 +1 @@ +install: cargo build --release; rm c:/dev/tools/neovide.* -ErrorAction SilentlyContinue; cp ./target/release/neovide.exe c:/dev/tools/neovide.exe diff --git a/src/renderer/cursor_renderer.rs b/src/renderer/cursor_renderer.rs index 0e7caae..d1c744e 100644 --- a/src/renderer/cursor_renderer.rs +++ b/src/renderer/cursor_renderer.rs @@ -5,7 +5,7 @@ use skulpin::skia_safe::{Canvas, Paint, Path, Point}; use crate::renderer::{CachingShaper, FontLookup}; use crate::editor::{Colors, Cursor, CursorShape, Editor}; -const AVERAGE_MOTION_PERCENTAGE: f32 = 0.6; +const AVERAGE_MOTION_PERCENTAGE: f32 = 0.7; const MOTION_PERCENTAGE_SPREAD: f32 = 0.5; const DEFAULT_CELL_PERCENTAGE: f32 = 1.0 / 8.0; diff --git a/src/renderer/mod.rs b/src/renderer/mod.rs index 6b1b2e3..01a10fd 100644 --- a/src/renderer/mod.rs +++ b/src/renderer/mod.rs @@ -116,14 +116,17 @@ impl Renderer { Renderer { editor, surface, paint, fonts_lookup, shaper, font_width, font_height, cursor_renderer } } - fn draw_background(&mut self, canvas: &mut Canvas, text: &str, grid_pos: (u64, u64), size: u16, style: &Option