⚠️ VeridianOS Kernel Documentation - This is low-level kernel code. All functions are unsafe unless explicitly marked otherwise. no_std

draw_cursor

Function draw_cursor 

Source
pub fn draw_cursor(
    buf: &mut [u8],
    stride: usize,
    buf_width: usize,
    buf_height: usize,
    cx: i32,
    cy: i32,
)
Expand description

Draw the cursor sprite onto a pixel buffer.

§Arguments

  • buf: Pixel buffer (BGRA format, 4 bytes/pixel).
  • stride: Buffer stride in bytes.
  • buf_width: Buffer width in pixels.
  • buf_height: Buffer height in pixels.
  • cx, cy: Cursor position (top-left of sprite).