diff options
| author | Hannes Schulze <haschu0103@outlook.de> | 2025-02-06 19:54:38 +0100 |
|---|---|---|
| committer | Hannes Schulze <haschu0103@outlook.de> | 2025-02-06 19:54:38 +0100 |
| commit | 64ebfde8bcd6408e3b6925624e8680c314db6efc (patch) | |
| tree | b969314f909f7f16ef5acc63f90dca317a40850a /lib/nes/app/application.cc | |
| parent | d060e3a50c987d10799ccc739bdbf9d7d7a13c10 (diff) | |
get rid of nasty stdlib
Diffstat (limited to 'lib/nes/app/application.cc')
| -rw-r--r-- | lib/nes/app/application.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/nes/app/application.cc b/lib/nes/app/application.cc index 015e641..ac9f731 100644 --- a/lib/nes/app/application.cc +++ b/lib/nes/app/application.cc @@ -46,9 +46,9 @@ namespace nes::app display_.screen = &screen_title_; } - auto application::frame(std::chrono::microseconds const elapsed_time) -> void + auto application::frame(u32 const elapsed_time_us) -> void { - display_.fps_counter.frame(elapsed_time); + display_.fps_counter.frame(elapsed_time_us); if (display_.popup) { @@ -89,7 +89,7 @@ namespace nes::app // The scene is rendered by the console after the PPU requests a new frame (thus calling // display_proxy::switch_buffers). - console_->step(elapsed_time); + console_->step(sys::cycle_count::from_microseconds(elapsed_time_us)); if (console_->get_status() != status::success) { @@ -171,7 +171,7 @@ namespace nes::app } } - auto application::show_error(std::string_view const message, status const error, action const& action) -> void + auto application::show_error(string_view const message, status const error, action const& action) -> void { screen_error_.set_message(message); screen_error_.set_error(error); |
