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, pub fn draw(&mut self,
cursor: Cursor, default_colors: &Colors, cursor: Cursor, default_colors: &Colors,
font_width: f32, font_height: f32, font_width: f32, font_height: f32,
paint: &mut Paint, shaper: &mut CachingShaper, shaper: &mut CachingShaper, canvas: &mut Canvas) {
canvas: &mut Canvas) {
let render = self.blink_status.update_status(&cursor); let render = self.blink_status.update_status(&cursor);
let mut paint = Paint::new(skulpin::skia_safe::colors::WHITE, None);
paint.set_anti_alias(true); paint.set_anti_alias(true);
self.previous_position = { self.previous_position = {

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

Loading…
Cancel
Save