cleanup: remove early kernel-mode PanelBar functionality

This commit is contained in:
2026-06-19 18:29:37 +02:00
parent f2aaa39ca6
commit d68dd6979d
4 changed files with 1 additions and 55 deletions
+1 -1
View File
@@ -12,4 +12,4 @@
#pragma once #pragma once
#define MONTAUK_BUILD_NUMBER 126 #define MONTAUK_BUILD_NUMBER 127
-15
View File
@@ -169,20 +169,6 @@ namespace Kt {
return fbctx->font_scale_y; return fbctx->font_scale_y;
} }
void UpdatePanelBar(CString panelText) {
kout << "\033[s";
kout << "\033[H";
int panelWidth = g_terminal_width / 9;
kout << "\033[44m" << "\033[97m";
kout << panelText;
for (int i = static_cast<int>(Lib::strlen(panelText)); i < panelWidth; ++i)
kout << " ";
kout << "\033[0m";
kout << "\033[u";
}
void Initialize(std::uint32_t *framebuffer, std::size_t width, std::size_t height, std::size_t pitch, void Initialize(std::uint32_t *framebuffer, std::size_t width, std::size_t height, std::size_t pitch,
std::uint8_t red_mask_size, std::uint8_t red_mask_shift, std::uint8_t red_mask_size, std::uint8_t red_mask_shift,
std::uint8_t green_mask_size, std::uint8_t green_mask_shift, std::uint8_t green_mask_size, std::uint8_t green_mask_shift,
@@ -216,7 +202,6 @@ namespace Kt {
struct flanterm_fb_context *fbctx = (struct flanterm_fb_context *)ctx; struct flanterm_fb_context *fbctx = (struct flanterm_fb_context *)ctx;
fbctx->plot_char = plot_char_universal; fbctx->plot_char = plot_char_universal;
UpdatePanelBar("Initializing...");
kout << "\n\n\n"; kout << "\n\n\n";
} }
-2
View File
@@ -48,8 +48,6 @@ namespace Kt
// preventing dropped PS/2 mouse/keyboard bytes during log output. // preventing dropped PS/2 mouse/keyboard bytes during log output.
extern kcp::Mutex g_termLock; extern kcp::Mutex g_termLock;
void UpdatePanelBar(const char* panelText);
void Rescale(std::size_t font_scale_x, std::size_t font_scale_y); void Rescale(std::size_t font_scale_x, std::size_t font_scale_y);
std::size_t GetFontScaleX(); std::size_t GetFontScaleX();
std::size_t GetFontScaleY(); std::size_t GetFontScaleY();
-37
View File
@@ -70,14 +70,6 @@ static Timekeeping::DateTime EpochToDate(int64_t epoch) {
void Timekeeping::Init(uint16_t Year, uint8_t Month, uint8_t Day, uint8_t Hour, uint8_t Minute, uint8_t Second) { void Timekeeping::Init(uint16_t Year, uint8_t Month, uint8_t Day, uint8_t Hour, uint8_t Minute, uint8_t Second) {
g_bootEpoch = DateToEpoch(Year, Month, Day, Hour, Minute, Second); g_bootEpoch = DateToEpoch(Year, Month, Day, Hour, Minute, Second);
/* Apply default timezone offset for boot log display */
int adjMin = Minute + (g_tzOffsetMinutes % 60);
int adjHour = Hour + (g_tzOffsetMinutes / 60);
if (adjMin < 0) { adjMin += 60; adjHour -= 1; }
if (adjMin >= 60) { adjMin -= 60; adjHour += 1; }
if (adjHour < 0) adjHour += 24;
if (adjHour >= 24) adjHour -= 24;
int offH = g_tzOffsetMinutes / 60; int offH = g_tzOffsetMinutes / 60;
int offM = g_tzOffsetMinutes % 60; int offM = g_tzOffsetMinutes % 60;
if (offM < 0) offM = -offM; if (offM < 0) offM = -offM;
@@ -86,35 +78,6 @@ void Timekeeping::Init(uint16_t Year, uint8_t Month, uint8_t Day, uint8_t Hour,
<< (offH >= 0 ? "+" : "") << offH << (offH >= 0 ? "+" : "") << offH
<< (offM ? ":" : "") << (offM >= 10 ? "" : (offM ? "0" : "")) << (offM ? ":" : "") << (offM >= 10 ? "" : (offM ? "0" : ""))
<< (offM ? offM : 0); << (offM ? offM : 0);
kcp::cstringstream minuteStream;
if (adjMin < 10) {
minuteStream << "0";
}
minuteStream << adjMin;
CString minuteStr = minuteStream.c_str();
kcp::cstringstream secondStream;
if (Second < 10) {
secondStream << "0";
}
secondStream << Second;
CString secondStr = secondStream.c_str();
kcp::cstringstream panelStr;
panelStr
<< " "
<< Day << " "
<< Months[Month] << " "
<< Year << ", "
<< adjHour << ":"
<< minuteStr << ":"
<< secondStr
<< " (UTC" << (offH >= 0 ? "+" : "") << offH << ")";
CString dateString = panelStr.c_str();
UpdatePanelBar(dateString);
} }
int64_t Timekeeping::GetUnixTimestamp() { int64_t Timekeeping::GetUnixTimestamp() {