Making cursor_renderer its own nested module

macos-click-through
Jon Valdés 5 years ago
parent a4c9dd442a
commit d967666222

@ -3,11 +3,12 @@ use std::time::{Duration, Instant};
use skulpin::skia_safe::{BlendMode, Canvas, Color, Paint, Path, Point, Rect}; use skulpin::skia_safe::{BlendMode, Canvas, Color, Paint, Path, Point, Rect};
use crate::settings::SETTINGS; use crate::settings::SETTINGS;
use crate::renderer::animation_utils::*;
use crate::renderer::CachingShaper; use crate::renderer::CachingShaper;
use crate::editor::{EDITOR, Colors, Cursor, CursorShape}; use crate::editor::{EDITOR, Colors, Cursor, CursorShape};
use crate::redraw_scheduler::REDRAW_SCHEDULER; use crate::redraw_scheduler::REDRAW_SCHEDULER;
mod animation_utils;
use animation_utils::*;
const BASE_ANIMATION_LENGTH_SECONDS: f32 = 0.06; const BASE_ANIMATION_LENGTH_SECONDS: f32 = 0.06;
const CURSOR_TRAIL_SIZE: f32 = 0.6; const CURSOR_TRAIL_SIZE: f32 = 0.6;

@ -5,7 +5,6 @@ use skulpin::skia_safe::{Canvas, Paint, Surface, Budgeted, Rect, colors, dash_pa
use skulpin::skia_safe::gpu::SurfaceOrigin; use skulpin::skia_safe::gpu::SurfaceOrigin;
use log::trace; use log::trace;
mod animation_utils;
mod caching_shaper; mod caching_shaper;
mod cursor_renderer; mod cursor_renderer;

Loading…
Cancel
Save