Skip to content

Commit 1324d66

Browse files
committed
format
1 parent 7b1451f commit 1324d66

2 files changed

Lines changed: 24 additions & 24 deletions

File tree

src/ruisapp/glue/ios/window.cxx

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -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
}

src/ruisapp/glue/ios/window.hxx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,8 +105,8 @@ public:
105105

106106
void bind_rendering_context() override;
107107

108-
void set_fullscreen_internal(bool enable) override;
108+
void set_fullscreen_internal(bool enable) override;
109109

110-
ruis::rect get_content_rect() const;
110+
ruis::rect get_content_rect() const;
111111
};
112112
} // namespace

0 commit comments

Comments
 (0)