Skip to content

Commit 0d00bfd

Browse files
committed
Cleaned up example a bit
1 parent d0b5451 commit 0d00bfd

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22

33
name = "piston_window"
4-
version = "0.0.5"
4+
version = "0.0.6"
55
authors = ["bvssvni <[email protected]>"]
66
keywords = ["window", "piston"]
77
description = "The official Piston window back-end for the Piston game engine"

examples/hello_piston.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ use std::cell::RefCell;
77
use std::rc::Rc;
88
use glutin_window::{ OpenGL, GlutinWindow };
99
use piston_window::*;
10-
use piston::window::{ WindowSettings, Size };
10+
use piston::window::WindowSettings;
1111

1212
use piston::event::*;
1313
use graphics::*;
@@ -16,8 +16,7 @@ use piston::input::*;
1616
fn main() {
1717
let window = Rc::new(RefCell::new(GlutinWindow::new(
1818
OpenGL::_3_2,
19-
WindowSettings::new("Hello Piston!".to_string(),
20-
Size { width: 640, height: 480 })
19+
WindowSettings::new("Hello Piston!", [640, 480])
2120
.exit_on_esc(true)
2221
)));
2322
println!("Press any button to enter inner loop");

0 commit comments

Comments
 (0)