Dolda2000 GitWeb
/
kaka
/
rust-sdl-test.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Vsync instead of fps + print display modes
[kaka/rust-sdl-test.git]
/
src
/
main.rs
diff --git
a/src/main.rs
b/src/main.rs
index
31f9d3b
..
217918c
100644
(file)
--- a/
src/main.rs
+++ b/
src/main.rs
@@
-30,10
+30,10
@@
fn main() {
println!("starting...");
let mut app = App::new()
.with_resolution(SCREEN_WIDTH as u16, SCREEN_HEIGHT as u16)
println!("starting...");
let mut app = App::new()
.with_resolution(SCREEN_WIDTH as u16, SCREEN_HEIGHT as u16)
- .with_fps(60)
.with_state(Box::new(ActiveState::new()))
.with_title("SDL test")
.with_state(Box::new(ActiveState::new()))
.with_title("SDL test")
- .start();
+ .build()
+ .unwrap();
app.load_sprites(&[
("block", "res/block.bmp"),
("mario", "res/mario-trans.png"),
app.load_sprites(&[
("block", "res/block.bmp"),
("mario", "res/mario-trans.png"),