diff options
-rw-r--r-- | wgpu/src/primitive.rs | 2 | ||||
-rw-r--r-- | wgpu/src/renderer.rs | 2 | ||||
-rw-r--r-- | wgpu/src/renderer/scrollable.rs | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/wgpu/src/primitive.rs b/wgpu/src/primitive.rs index cdd87894..354b0851 100644 --- a/wgpu/src/primitive.rs +++ b/wgpu/src/primitive.rs @@ -23,7 +23,7 @@ pub enum Primitive { path: String, bounds: Rectangle, }, - Scrollable { + Clip { bounds: Rectangle, offset: u32, content: Box<Primitive>, diff --git a/wgpu/src/renderer.rs b/wgpu/src/renderer.rs index f0be0860..a70693af 100644 --- a/wgpu/src/renderer.rs +++ b/wgpu/src/renderer.rs @@ -270,7 +270,7 @@ impl Renderer { scale: [bounds.width, bounds.height], }); } - Primitive::Scrollable { + Primitive::Clip { bounds, offset, content, diff --git a/wgpu/src/renderer/scrollable.rs b/wgpu/src/renderer/scrollable.rs index 7f8a7db6..7bce3a68 100644 --- a/wgpu/src/renderer/scrollable.rs +++ b/wgpu/src/renderer/scrollable.rs @@ -56,7 +56,7 @@ impl scrollable::Renderer for Renderer { let (content, mouse_cursor) = scrollable.content.draw(self, content, cursor_position); - let primitive = Primitive::Scrollable { + let primitive = Primitive::Clip { bounds, offset, content: Box::new(content), |