Kept antialiasing enabled only for the cursor rendering

macos-click-through
Jon Valdés 5 years ago
parent 218f9adb6a
commit 2ad315a507

@ -230,10 +230,10 @@ impl CursorRenderer {
pub fn draw(&mut self,
cursor: Cursor, default_colors: &Colors,
font_width: f32, font_height: f32,
paint: &mut Paint, shaper: &mut CachingShaper,
canvas: &mut Canvas) {
shaper: &mut CachingShaper, canvas: &mut Canvas) {
let render = self.blink_status.update_status(&cursor);
let mut paint = Paint::new(skulpin::skia_safe::colors::WHITE, None);
paint.set_anti_alias(true);
self.previous_position = {

@ -162,8 +162,7 @@ impl Renderer {
self.cursor_renderer.draw(
cursor, &default_style.colors,
self.font_width, self.font_height,
&mut self.paint, &mut self.shaper,
gpu_canvas);
&mut self.shaper, gpu_canvas);
font_changed
}

Loading…
Cancel
Save