Skip to content

Commit 284c03b

Browse files
committed
use utki::log_debug()
1 parent dcacad5 commit 284c03b

6 files changed

Lines changed: 143 additions & 142 deletions

File tree

src/ruisapp/application.cpp

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,10 @@ void application::update_window_rect(const ruis::rect& rect)
5151

5252
this->cur_window_rect = rect;
5353

54-
LOG([&](auto& o) {
54+
utki::log_debug([&](auto& o) {
5555
o << "application::update_window_rect(): this->cur_window_rect = " << this->cur_window_rect << std::endl;
56-
})
56+
});
57+
5758
this->gui.context.get().renderer.get().render_context.get().set_viewport(r4::rectangle<uint32_t>(
5859
uint32_t(this->cur_window_rect.p.x()),
5960
uint32_t(this->cur_window_rect.p.y()),
@@ -72,16 +73,17 @@ std::unique_ptr<papki::file> application::get_res_file(std::string_view path) co
7273

7374
void application::show_virtual_keyboard() noexcept
7475
{
75-
LOG([](auto& o) {
76+
utki::log_debug([](auto& o) {
7677
o << "application::show_virtual_keyboard(): invoked" << std::endl;
77-
})
78+
});
7879
// do nothing
7980
}
8081

81-
void application::hide_virtual_keyboard() noexcept {
82-
LOG([](auto& o) {
82+
void application::hide_virtual_keyboard() noexcept
83+
{
84+
utki::log_debug([](auto& o) {
8385
o << "application::hide_virtual_keyboard(): invoked" << std::endl;
84-
})
86+
});
8587
// do nothing
8688
}
8789
#endif

src/ruisapp/glue/ios/glue.mm

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,7 @@ - (void)touchesCancelled:(NSSet<UITouch *> *)touches withEvent:(UIEvent *)event{
293293
}
294294

295295
void application::quit()noexcept{
296-
//TODO:
296+
// TODO:
297297
}
298298

299299
namespace{
@@ -309,7 +309,7 @@ - (void)touchesCancelled:(NSSet<UITouch *> *)touches withEvent:(UIEvent *)event{
309309
} else {
310310
value = 160 * scale;
311311
}
312-
LOG([&](auto&o){o << "dpi = " << value << std::endl;})
312+
utki::log_debug([&](auto&o){o << "dpi = " << value << std::endl;});
313313
return value;
314314
}
315315
}
@@ -318,7 +318,7 @@ - (void)touchesCancelled:(NSSet<UITouch *> *)touches withEvent:(UIEvent *)event{
318318
ruis::real getDotsPerDp(){
319319
float scale = [[UIScreen mainScreen] scale];
320320

321-
//TODO: use get_pixels_per_pp() function from ruis util
321+
// TODO: use get_pixels_per_pp() function from ruis util
322322

323323
return ruis::real(scale);
324324
}

0 commit comments

Comments
 (0)