Tidy the ported drag block, and format fill.rs as master left it

This commit is contained in:
2026-09-20 21:40:20 +02:00
parent 2014c80e62
commit 94b39410bc
3 changed files with 13 additions and 15 deletions
+10 -2
View File
@@ -745,8 +745,16 @@ mod tests {
tile: 64,
seen: Vec::new(),
};
let tiles = fill_border(&mut rgb, 300, 40, &known, &mut model, test_params(0), &mut |_, _| {})
.unwrap();
let tiles = fill_border(
&mut rgb,
300,
40,
&known,
&mut model,
test_params(0),
&mut |_, _| {},
)
.unwrap();
assert!(tiles > 0, "no tile fitted a picture shorter than the tile");
for i in 0..300 * 40 {
if !known[i] {
File diff suppressed because one or more lines are too long
-10
View File
@@ -177,16 +177,6 @@ pub(super) fn forget_drag_image_file() {
}
}
/// Draw one thumbnail into the composite, scaled to `tw`×`th` at `dx`,`dy`.
///
/// Nearest-neighbour: this is a transient 160px cursor bitmap, and a filtered
/// resample would cost more than it could visibly buy. `dim` darkens the layers
/// beneath the top one so the stack reads as depth rather than as a smear.
///
/// The buffer is premultiplied, so the alpha applied here is baked into the
/// colour channels as well.
#[allow(clippy::too_many_arguments)]
/// Draw one thumbnail into the composite, scaled to `tw`×`th` at `dx`,`dy`.
///
/// Nearest-neighbour: this is a transient 160px cursor bitmap, and a filtered