File tree Expand file tree Collapse file tree 1 file changed +2
-8
lines changed Expand file tree Collapse file tree 1 file changed +2
-8
lines changed Original file line number Diff line number Diff line change @@ -15,8 +15,6 @@ pub struct App {
1515
1616impl App {
1717 pub fn new ( ) -> Self {
18- let pm = projectm:: create ( ) ;
19-
2018 // setup sdl
2119 let sdl_context = sdl2:: init ( ) . unwrap ( ) ;
2220 let video_subsystem = sdl_context. video ( ) . unwrap ( ) ;
@@ -49,15 +47,11 @@ impl App {
4947 window. gl_make_current ( & gl_context) . unwrap ( ) ;
5048
5149 // initialize projectM
52- let projectm_handle = projectm:: create ( ) ;
50+ let pm = projectm:: create ( ) ;
5351
5452 // get/set window size
5553 let ( width, height) = window. drawable_size ( ) ; // highDPI aware
56- projectm:: set_window_size (
57- projectm_handle,
58- width. try_into ( ) . unwrap ( ) ,
59- height. try_into ( ) . unwrap ( ) ,
60- ) ;
54+ projectm:: set_window_size ( pm, width. try_into ( ) . unwrap ( ) , height. try_into ( ) . unwrap ( ) ) ;
6155
6256 println ! ( "projectm initialized!" ) ;
6357 Self {
You can’t perform that action at this time.
0 commit comments