From 8f879de9f52c8045916f86b91f98de70bc92484b Mon Sep 17 00:00:00 2001 From: Emil Ernerfeldt Date: Sat, 25 Apr 2020 11:12:00 +0200 Subject: [PATCH] minor glium app change --- build_and_run.sh => build_glium.sh | 0 example_glium/src/main.rs | 10 +++++----- 2 files changed, 5 insertions(+), 5 deletions(-) rename build_and_run.sh => build_glium.sh (100%) diff --git a/build_and_run.sh b/build_glium.sh similarity index 100% rename from build_and_run.sh rename to build_glium.sh diff --git a/example_glium/src/main.rs b/example_glium/src/main.rs index fad776f78..50dfe5f37 100644 --- a/example_glium/src/main.rs +++ b/example_glium/src/main.rs @@ -23,10 +23,10 @@ fn main() { display .gl_window() .set_inner_size(glutin::dpi::LogicalSize { - width: 1200.0, + width: 1024.0, height: 800.0, }); - display.gl_window().set_position((16, 32).into()); // Useful when debugging and constantly restarting it + display.gl_window().set_position((0, 24).into()); // Useful when ddeveloping and constantly restarting it let pixels_per_point = display.gl_window().get_hidpi_factor() as f32; @@ -114,15 +114,15 @@ fn main() { // TODO: Make it even simpler to show a window Window::new("Examples") - .default_pos(pos2(100.0, 100.0)) + .default_pos(pos2(50.0, 100.0)) .default_size(vec2(300.0, 400.0)) .show(region.ctx(), |region| { example_app.ui(region); }); Window::new("Emigui settings") - .default_pos(pos2(500.0, 100.0)) - .default_size(vec2(500.0, 500.0)) + .default_pos(pos2(450.0, 100.0)) + .default_size(vec2(450.0, 500.0)) .show(region.ctx(), |region| { emigui.ui(region); });