@@ -145,22 +145,22 @@ void handle_mouse_move(
145145
146146 utki::assert (self->window , SL);
147147
148- auto & natwin = self->window ->ruis_native_window .get ();
148+ auto & natwin = self->window ->ruis_native_window .get ();
149149
150- // TODO: get correct content rect
151- auto content_rect = natwin.get_content_rect ();
152- // ruis::rect content_rect{
153- // {ruis::real(rect.origin.x), ruis::real(rect.origin.y)},
154- // {ruis::real(rect.size.width), ruis::real(rect.size.height)} //
155- // };
150+ // TODO: get correct content rect
151+ auto content_rect = natwin.get_content_rect ();
152+ // ruis::rect content_rect{
153+ // {ruis::real(rect.origin.x), ruis::real(rect.origin.y)},
154+ // {ruis::real(rect.size.width), ruis::real(rect.size.height)} //
155+ // };
156156
157- // utki::log_debug([&](auto&o){
158- // o << "content_rect = " << content_rect << std::endl;
159- // });
157+ // utki::log_debug([&](auto&o){
158+ // o << "content_rect = " << content_rect << std::endl;
159+ // });
160160
161- // TODO: for optimization, check if rect has changed
162- // set the GL viewport
163- self->window ->gui .set_viewport (content_rect);
161+ // TODO: for optimization, check if rect has changed
162+ // set the GL viewport
163+ self->window ->gui .set_viewport (content_rect);
164164
165165 auto & glue = get_glue ();
166166 glue.render ();
@@ -340,13 +340,13 @@ void native_window::set_fullscreen_internal(bool enable)
340340
341341 using std::round;
342342
343- if (enable){
344- if ( [[[UIDevice currentDevice] systemVersion] floatValue] >= 7 .0f ) {
343+ if (enable) {
344+ if ( [[[UIDevice currentDevice] systemVersion] floatValue] >= 7 .0f ) {
345345 CGRect rect = this ->ios_window .window .frame ;
346346 this ->ios_window .window .rootViewController .view .frame = rect;
347347 }
348-
349- // TODO: this was setting the viewport, is something still needed here?
348+
349+ // TODO: this was setting the viewport, is something still needed here?
350350 // update_window_rect(
351351 // ruis::rect(
352352 // ruis::vector2(0),
@@ -356,19 +356,19 @@ void native_window::set_fullscreen_internal(bool enable)
356356 // )
357357 // )
358358 // );
359-
359+
360360 this ->ios_window .window .windowLevel = UIWindowLevelStatusBar;
361- }else {
361+ } else {
362362 CGSize statusBarSize = [[UIApplication sharedApplication] statusBarFrame].size ;
363363
364- if ( [[[UIDevice currentDevice] systemVersion] floatValue] >= 7 .0f ) {
364+ if ( [[[UIDevice currentDevice] systemVersion] floatValue] >= 7 .0f ) {
365365 CGRect rect = this ->ios_window .window .frame ;
366366 rect.origin .y += statusBarSize.height ;
367367 rect.size .height -= statusBarSize.height ;
368368 this ->ios_window .window .rootViewController .view .frame = rect;
369369 }
370370
371- // TODO: this was setting the viewport, is something still needed here?
371+ // TODO: this was setting the viewport, is something still needed here?
372372 // update_window_rect(
373373 // ruis::rect(
374374 // ruis::vector2(0),
@@ -378,7 +378,7 @@ void native_window::set_fullscreen_internal(bool enable)
378378 // )
379379 // )
380380 // );
381-
381+
382382 this ->ios_window .window .windowLevel = UIWindowLevelNormal;
383383 }
384384}
0 commit comments