summaryrefslogtreecommitdiff
path: root/src/ui/ui_log.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui/ui_log.cpp')
-rw-r--r--src/ui/ui_log.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/ui/ui_log.cpp b/src/ui/ui_log.cpp
index fa56f4a..48eaf1c 100644
--- a/src/ui/ui_log.cpp
+++ b/src/ui/ui_log.cpp
@@ -18,18 +18,18 @@
#include "ui.hpp"
#include "imgui.h"
-#include "log.hpp"
+#include "logger.hpp"
#include "locales.hpp"
void ui_draw_log()
{
- program_log* l = get_log();
+ logger::program_log* l = logger::get();
for (int i = (int)l->history_length-1; i >= 0; i--)
{
s32 cursor = l->write_cursor - l->history_length + i;
if (cursor < 0) {
- cursor = (l->write_cursor + i) % MAX_LEN_LOG_HISTORY;
+ cursor = (l->write_cursor + i) % logger::MAX_LEN_LOG_HISTORY;
}
ImGui::TextColored(l->colors[cursor], l->history[cursor]);
}