File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -375,6 +375,12 @@ class window_wrapper : public utki::destructable
375375 public:
376376 sdl_cursor_wrapper () = default ;
377377
378+ sdl_cursor_wrapper (const sdl_cursor_wrapper&) = delete ;
379+ sdl_cursor_wrapper& operator =(const sdl_cursor_wrapper&) = delete ;
380+
381+ sdl_cursor_wrapper (sdl_cursor_wrapper&&) = delete ;
382+ sdl_cursor_wrapper& operator =(sdl_cursor_wrapper&&) = delete ;
383+
378384 void set (ruis::mouse_cursor cursor)
379385 {
380386 ASSERT (!this ->sdl_cursor )
@@ -452,8 +458,8 @@ class window_wrapper : public utki::destructable
452458 }
453459 auto * ww = reinterpret_cast <sdl_window_wrapper*>(user_data);
454460
455- double width;
456- double height;
461+ double width = 0 ;
462+ double height = 0 ;
457463
458464 if (auto res = emscripten_get_element_css_size (" #canvas" , &width, &height);
459465 res != EMSCRIPTEN_RESULT_SUCCESS)
@@ -728,8 +734,8 @@ application::application(std::string name, const window_params& wp) :
728734 auto & ww = get_impl (*this );
729735
730736 // Get actual window size, as it can differ from requested one.
731- int width;
732- int height;
737+ int width = 0 ;
738+ int height = 0 ;
733739 SDL_GetWindowSize (ww.window .window , &width, &height);
734740
735741 auto dims = ruis::vec2 (ruis::real (width), ruis::real (height));
You can’t perform that action at this time.
0 commit comments