File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -46,8 +46,7 @@ application_glue::application_glue(const utki::version_duplet& gl_version) :
4646 this ->gl_version,
4747 ruisapp::window_parameters{
4848 .dims = {1 , 1 },
49- .fullscreen = false ,
50- .visible = false
49+ .fullscreen = false
5150},
5251 nullptr // no shared gl context
5352 )),
Original file line number Diff line number Diff line change 99
1010native_window::window_wrapper::window_wrapper (
1111 const display_wrapper::window_class_wrapper& window_class,
12- const ruisapp::window_parameters& window_params
12+ const ruisapp::window_parameters& window_params,
13+ bool visible
1314) :
1415 handle([&]() {
1516 auto hwnd = CreateWindowEx (
@@ -37,7 +38,7 @@ native_window::window_wrapper::window_wrapper(
3738 return hwnd;
3839 }())
3940{
40- if (window_params. visible ) {
41+ if (visible) {
4142 ShowWindow (
4243 this ->handle , //
4344 SW_SHOW
@@ -270,7 +271,8 @@ native_window::native_window(
270271 window(
271272 shared_gl_context_native_window ? this ->display.get().regular_window_class
272273 : this->display.get().dummy_window_class, //
273- window_params
274+ window_params,
275+ shared_gl_context_native_window != nullptr
274276 ),
275277 device_context(this ->window),
276278#ifdef RUISAPP_RENDER_OPENGL
Original file line number Diff line number Diff line change @@ -24,7 +24,8 @@ class native_window : public ruis::render::native_window
2424
2525 window_wrapper (
2626 const display_wrapper::window_class_wrapper& window_class,
27- const ruisapp::window_parameters& window_params
27+ const ruisapp::window_parameters& window_params,
28+ bool visible
2829 );
2930
3031 window_wrapper (const window_wrapper&) = delete ;
You can’t perform that action at this time.
0 commit comments