mirror of
https://github.com/servo/servo.git
synced 2025-08-07 14:35:33 +01:00
Change 'image_rendering' enum variants to snake cases
This commit is contained in:
parent
34a23b343c
commit
5fd398ec06
4 changed files with 19 additions and 18 deletions
|
@ -222,8 +222,8 @@ impl<'a> PaintContext<'a> {
|
|||
// conforming implementation of `crisp-edges`, but it is not the best we could do.
|
||||
// Something like Scale2x would be ideal.
|
||||
let draw_surface_filter = match image_rendering {
|
||||
image_rendering::T::Auto => Filter::Linear,
|
||||
image_rendering::T::CrispEdges | image_rendering::T::Pixelated => Filter::Point,
|
||||
image_rendering::T::auto => Filter::Linear,
|
||||
image_rendering::T::crispedges | image_rendering::T::pixelated => Filter::Point,
|
||||
};
|
||||
|
||||
let draw_surface_options = DrawSurfaceOptions::new(draw_surface_filter, true);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue