cleanup: namespace Montauk (capital M) => montauk::abi

This commit is contained in:
2026-06-16 09:09:16 +02:00
parent b6ac5ac994
commit 43d43ac9ea
165 changed files with 758 additions and 758 deletions
+5 -5
View File
@@ -146,13 +146,13 @@ static bool handle_content_click(int mx, int my) {
int map_x = MAP_PAD;
int map_w = g_win_w - MAP_PAD * 2;
if (my >= y && my < y + MAP_H) {
Montauk::DiskInfo& disk = dt.disks[dt.selected_disk];
montauk::abi::DiskInfo& disk = dt.disks[dt.selected_disk];
int part_indices[MAX_PARTS];
int nparts = get_disk_parts(part_indices, MAX_PARTS);
uint64_t total = disk.sectorCount;
if (total > 0) {
for (int pi = 0; pi < nparts; pi++) {
Montauk::PartInfo& p = dt.parts[part_indices[pi]];
montauk::abi::PartInfo& p = dt.parts[part_indices[pi]];
int px = map_x + (int)((p.startLba * (uint64_t)map_w) / total);
int pw = (int)((p.sectorCount * (uint64_t)map_w) / total);
if (pw < 2) pw = 2;
@@ -278,7 +278,7 @@ static void clamp_scroll() {
g_state.scroll_y = gui_clamp(g_state.scroll_y, 0, max_scroll_y());
}
static bool handle_mouse(const Montauk::WinEvent& ev) {
static bool handle_mouse(const montauk::abi::WinEvent& ev) {
int prev_x = g_state.mouse_x;
int prev_y = g_state.mouse_y;
int prev_disk_hover = hovered_disk_button(prev_x, prev_y);
@@ -320,7 +320,7 @@ static bool handle_mouse(const Montauk::WinEvent& ev) {
// Key handling
// ============================================================================
static bool handle_key(const Montauk::KeyEvent& key) {
static bool handle_key(const montauk::abi::KeyEvent& key) {
if (!key.pressed) return false;
auto& dt = g_state;
@@ -403,7 +403,7 @@ extern "C" void _start() {
win.present();
while (true) {
Montauk::WinEvent ev;
montauk::abi::WinEvent ev;
bool redraw_main = false;
bool redraw_dlg = false;