bundle cursors into cursor_rush.dat, started animator
This commit is contained in:
@@ -15,8 +15,9 @@ mod macos;
|
||||
#[cfg(target_os = "linux")]
|
||||
mod linux;
|
||||
|
||||
// Error type for platform operations
|
||||
pub type Result<T> = std::result::Result<T, String>;
|
||||
use anyhow::Result;
|
||||
|
||||
use image::RgbaImage;
|
||||
|
||||
// Platform-agnostic interface for cursor handling
|
||||
#[cfg(target_os = "windows")]
|
||||
@@ -41,9 +42,9 @@ pub fn initialize() -> Result<()> {
|
||||
}
|
||||
|
||||
// Cross-platform implementation for setting cursor
|
||||
pub fn set_system_cursor(path: &str) -> Result<()> {
|
||||
println!("Setting system cursor: {}", path);
|
||||
set_cursor(path)
|
||||
pub fn set_system_cursor(image: &RgbaImage) -> Result<()> {
|
||||
println!("Setting system cursor");
|
||||
set_cursor(image)
|
||||
}
|
||||
|
||||
// Cross-platform implementation for restoring default cursor
|
||||
|
||||
Reference in New Issue
Block a user