cleanup: remove unused blit_copy_swapped function
Browse filesWA's copy mode (blend 0) ignores orientation — it's always a forward
memcpy. The swapped variant was never called.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
crates/openwa-core/src/display/sprite_blit.rs
CHANGED
|
@@ -400,39 +400,6 @@ fn blit_color_table(
|
|
| 400 |
}
|
| 401 |
}
|
| 402 |
|
| 403 |
-
/// Direct copy blit — 90° rotated orientations (axes swapped).
|
| 404 |
-
///
|
| 405 |
-
/// Source X advances with dst Y, source Y advances with dst X.
|
| 406 |
-
fn blit_copy_swapped(
|
| 407 |
-
dst: &mut PixelGrid,
|
| 408 |
-
src: &BlitSource,
|
| 409 |
-
vis_left: i32,
|
| 410 |
-
vis_top: i32,
|
| 411 |
-
vis_w: i32,
|
| 412 |
-
vis_h: i32,
|
| 413 |
-
sx_start: i32,
|
| 414 |
-
sy_start: i32,
|
| 415 |
-
sx_step: i32,
|
| 416 |
-
sy_step: i32,
|
| 417 |
-
) {
|
| 418 |
-
let dst_stride = dst.row_stride as usize;
|
| 419 |
-
let src_stride = src.row_stride as usize;
|
| 420 |
-
|
| 421 |
-
let mut src_x = sx_start;
|
| 422 |
-
for dy in 0..vis_h {
|
| 423 |
-
let dst_row = (vis_top + dy) as usize * dst_stride + vis_left as usize;
|
| 424 |
-
|
| 425 |
-
let mut src_y = sy_start;
|
| 426 |
-
for dx in 0..vis_w {
|
| 427 |
-
dst.data[dst_row + dx as usize] =
|
| 428 |
-
src.data[src_x as usize * src_stride + src_y as usize];
|
| 429 |
-
src_y += sy_step;
|
| 430 |
-
}
|
| 431 |
-
|
| 432 |
-
src_x += sx_step;
|
| 433 |
-
}
|
| 434 |
-
}
|
| 435 |
-
|
| 436 |
/// Color-table blend blit — 90° rotated orientations (axes swapped).
|
| 437 |
fn blit_color_table_swapped(
|
| 438 |
dst: &mut PixelGrid,
|
|
|
|
| 400 |
}
|
| 401 |
}
|
| 402 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 403 |
/// Color-table blend blit — 90° rotated orientations (axes swapped).
|
| 404 |
fn blit_color_table_swapped(
|
| 405 |
dst: &mut PixelGrid,
|