Skip to content

Commit

Permalink
Change default to better match the default before this patch set
Browse files Browse the repository at this point in the history
  • Loading branch information
fishrockz committed Nov 1, 2021
1 parent 067b52a commit 6f9c3f1
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion druid/src/widget/common.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ pub enum FillStrat {

impl Default for FillStrat {
fn default() -> Self {
FillStrat::Contain
FillStrat::ScaleDown
}
}

Expand Down
10 changes: 6 additions & 4 deletions druid/src/widget/image.rs
Original file line number Diff line number Diff line change
Expand Up @@ -322,8 +322,9 @@ mod tests {
2,
);

let image_widget =
Image::new(image_data).interpolation_mode(InterpolationMode::NearestNeighbor);
let image_widget = Image::new(image_data)
.interpolation_mode(InterpolationMode::NearestNeighbor)
.fill_mode(FillStrat::Contain);

Harness::create_with_render(
(),
Expand Down Expand Up @@ -370,8 +371,9 @@ mod tests {
2,
);

let image_widget =
Image::new(image_data).interpolation_mode(InterpolationMode::NearestNeighbor);
let image_widget = Image::new(image_data)
.interpolation_mode(InterpolationMode::NearestNeighbor)
.fill_mode(FillStrat::Contain);

Harness::create_with_render(
true,
Expand Down

0 comments on commit 6f9c3f1

Please sign in to comment.