Skip to content

Commit ed2603c

Browse files
committed
minor fixes
1 parent 2fcc19e commit ed2603c

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/main.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ fn main() -> Result<(), String> {
5050

5151
unsafe {
5252
projectm_rs::projectm_select_random_preset(projectm_handle, true);
53-
projectm_rs::projectm_set_window_size(projectm_handle, settings.window_width.try_into().unwrap(), settings.window_height.try_into().unwrap())
53+
projectm_rs::projectm_set_window_size(projectm_handle, 800, 600)
5454
}
5555
println!("projectm initialized!");
5656

@@ -79,9 +79,7 @@ fn main() -> Result<(), String> {
7979
projectm_rs::projectm_render_frame(projectm_handle);
8080
}
8181

82-
83-
84-
canvas.clear();
82+
// present/render
8583
canvas.present();
8684
}
8785

0 commit comments

Comments
 (0)