From 59d45a5440aaa46c7dc8f3dc70c8518167c10418 Mon Sep 17 00:00:00 2001 From: Héctor Ramón Jiménez Date: Wed, 26 Feb 2020 12:34:34 +0100 Subject: Refactor texture atlas - Split into multiple modules - Rename some concepts - Change API details --- wgpu/src/renderer.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'wgpu/src/renderer.rs') diff --git a/wgpu/src/renderer.rs b/wgpu/src/renderer.rs index f67dd1eb..b5dce480 100644 --- a/wgpu/src/renderer.rs +++ b/wgpu/src/renderer.rs @@ -227,14 +227,14 @@ impl Renderer { layer.images.push(Image { handle: image::Handle::Raster(handle.clone()), position: [bounds.x, bounds.y], - scale: [bounds.width, bounds.height], + size: [bounds.width, bounds.height], }); } Primitive::Svg { handle, bounds } => { layer.images.push(Image { handle: image::Handle::Vector(handle.clone()), position: [bounds.x, bounds.y], - scale: [bounds.width, bounds.height], + size: [bounds.width, bounds.height], }); } Primitive::Mesh2D { origin, buffers } => { -- cgit