From 7b39ff6f94340e4972bdc90e49bfbed0c27cd0c5 Mon Sep 17 00:00:00 2001 From: pointer-to-bios Date: Sat, 30 Jul 2022 23:04:53 +0800 Subject: [PATCH] fix newline error --- BWLserver/guilog.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/BWLserver/guilog.cc b/BWLserver/guilog.cc index 25a2ad4..d97f72c 100644 --- a/BWLserver/guilog.cc +++ b/BWLserver/guilog.cc @@ -21,7 +21,7 @@ namespace bwl uint32_t bgcolor; //背景颜色 std::thread *cursor_flash; //光标刷新线程 -#define buffer_at(buffer, x, y) ((uint32_t *)buffer)[x + y * size[0]] +#define buffer_at(buffer, x, y) ((uint32_t *)buffer)[(x) + (y)*size[0]] void initGUILog(uint32_t *buffer, uint64_t width, uint64_t height, uint32_t __bgcolor) { @@ -36,7 +36,7 @@ namespace bwl cursor_move = true; cursor_flash = new std::thread(cursorFlasher); //开启光标刷新线程 bwl::log("init succeeded"); - putString("!#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~"); + putString("!#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~\nHello,World!"); } void clear() -- GitLab