INNER CODE UNIT · Rust
center_x
free-explorers/veshell · src/embedder/backend/render/mod.rs:228
let center_x = position.loc.x + width / 2;
let center_y = position.loc.y + width / 2;
push_solid(
ID_SELECTION_CROSSHAIR,
Rectangle::new(
(center_x - half, center_y - width / 2).into(),
(half * 2, width).into(),
),
SELECTION_COLOR,
);
push_solid(
ID_SELECTION_CROSSHAIR + 1,
Rectangle::new(
(center_x - width / 2, center_y - half).into(),
(width, half * 2).into(),
),
SELECTION_COLOR,
);