summaryrefslogtreecommitdiffstats
path: root/winit
diff options
context:
space:
mode:
authorLibravatar TimUntersberger <timuntersberger2@gmail.com>2021-06-25 18:03:18 +0200
committerLibravatar TimUntersberger <timuntersberger2@gmail.com>2021-06-25 18:03:18 +0200
commitde79a01b88e1610d374ed06077ac78f3e10b9c3d (patch)
tree679bec69f434182ee17a0e2da55a29b454334ed8 /winit
parent5c45d36d1a8cfd92cd1a454a7f4deedcd4d13fe7 (diff)
downloadiced-de79a01b88e1610d374ed06077ac78f3e10b9c3d.tar.gz
iced-de79a01b88e1610d374ed06077ac78f3e10b9c3d.tar.bz2
iced-de79a01b88e1610d374ed06077ac78f3e10b9c3d.zip
done
Diffstat (limited to 'winit')
-rw-r--r--winit/src/settings.rs5
1 files changed, 3 insertions, 2 deletions
diff --git a/winit/src/settings.rs b/winit/src/settings.rs
index 0508cd9b..1769c676 100644
--- a/winit/src/settings.rs
+++ b/winit/src/settings.rs
@@ -36,7 +36,7 @@ pub struct Window {
pub size: (u32, u32),
/// The position of the window.
- pub position: (u32, u32),
+ pub position: (i32, i32),
/// The minimum size of the window.
pub min_size: Option<(u32, u32)>,
@@ -78,7 +78,7 @@ impl Window {
window_builder = window_builder
.with_title(title)
.with_inner_size(winit::dpi::LogicalSize { width, height })
- .with_outer_position(self.position)
+ .with_position(winit::dpi::LogicalPosition { x: self.position.0, y: self.position.1 })
.with_resizable(self.resizable)
.with_decorations(self.decorations)
.with_transparent(self.transparent)
@@ -116,6 +116,7 @@ impl Default for Window {
fn default() -> Window {
Window {
size: (1024, 768),
+ position: (100, 100),
min_size: None,
max_size: None,
resizable: true,