--- nono/vm/lunafb.cpp 2026/04/29 17:05:50 1.1.1.10 +++ nono/vm/lunafb.cpp 2026/04/29 17:05:59 1.1.1.11 @@ -53,7 +53,7 @@ LunafbDevice::LunafbDevice() AddAlias("Lunafb"); monitor = gMonitorManager->Regist(ID_MONITOR_LUNAVC, this); - monitor->func = ToMonitorCallback(&LunafbDevice::MonitorUpdate); + monitor->SetCallback(&LunafbDevice::MonitorScreen); monitor->SetSize(39, 11); } @@ -80,7 +80,7 @@ LunafbDevice::Init() size_t memsize = 0x40000 * nplane; mem.reset(new(std::nothrow) uint8 [memsize]); if ((bool)mem == false) { - warnx("Cannot allocate %zu bytes at %s", memsize, __method__); + warnx("Could not allocate %zu bytes at %s", memsize, __method__); return false; } @@ -88,7 +88,7 @@ LunafbDevice::Init() palette = &(bt45x->GetHostPalette())[0]; // XXX とりあえず RAM と同じウェイトを入れておく (未調査) - wait = busdata::Wait(1 * mpu->GetClock_nsec()); + wait = busdata::Wait(1 * mpu->GetClock_tsec()); return true; } @@ -291,7 +291,7 @@ LunafbDevice::Poke1(uint32 addr, uint32 } void -LunafbDevice::MonitorUpdate(Monitor *, TextScreen& screen) +LunafbDevice::MonitorScreen(Monitor *, TextScreen& screen) { int i;