Tidy the ported drag block, and format fill.rs as master left it
This commit is contained in:
@@ -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
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user