summaryrefslogtreecommitdiffstats
path: root/wgpu/src/renderer/text_input.rs
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2019-11-05 03:16:46 +0100
committerLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2019-11-05 03:16:46 +0100
commit470266f54069a1c9b6147026d018b437b6457f7b (patch)
tree44778d322a6b95ab518fd8e9c89926390acb4380 /wgpu/src/renderer/text_input.rs
parentba470a2b2a334fa961af19ef9412ad2dfb4acbeb (diff)
downloadiced-470266f54069a1c9b6147026d018b437b6457f7b.tar.gz
iced-470266f54069a1c9b6147026d018b437b6457f7b.tar.bz2
iced-470266f54069a1c9b6147026d018b437b6457f7b.zip
Add horizontal offset to `Primitive::Clip`
Diffstat (limited to 'wgpu/src/renderer/text_input.rs')
-rw-r--r--wgpu/src/renderer/text_input.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/wgpu/src/renderer/text_input.rs b/wgpu/src/renderer/text_input.rs
index deb8eae7..95ea964e 100644
--- a/wgpu/src/renderer/text_input.rs
+++ b/wgpu/src/renderer/text_input.rs
@@ -2,7 +2,7 @@ use crate::{Primitive, Renderer};
use iced_native::{
text::HorizontalAlignment, text::VerticalAlignment, text_input, Background,
- Color, MouseCursor, Point, Rectangle, TextInput,
+ Color, MouseCursor, Point, Rectangle, TextInput, Vector,
};
use std::f32;
@@ -89,7 +89,7 @@ impl text_input::Renderer for Renderer {
let content = Primitive::Clip {
bounds: text_bounds,
- offset: 0,
+ offset: Vector::new(0, 0),
content: Box::new(if text_input.state.is_focused {
use wgpu_glyph::{GlyphCruncher, Scale, Section};