--- nono/vm/newsfb.cpp 2026/04/29 17:05:17 1.1 +++ nono/vm/newsfb.cpp 2026/04/29 17:06:00 1.1.1.3 @@ -9,6 +9,7 @@ // #include "newsfb.h" +#include "monitor.h" // コンストラクタ NewsfbDevice::NewsfbDevice() @@ -16,9 +17,9 @@ NewsfbDevice::NewsfbDevice() { console.Init(80, 32, TextScreen::Console); - monitor.func = ToMonitorCallback(&NewsfbDevice::MonitorUpdate); - monitor.SetSize(console.GetCol(), console.GetRow()); - monitor.Regist(ID_MONITOR_ROMCONS); + monitor = gMonitorManager->Regist(ID_MONITOR_ROMCONS, this); + monitor->SetCallback(&NewsfbDevice::MonitorScreen); + monitor->SetSize(console.GetCol(), console.GetRow()); } // デストラクタ @@ -48,7 +49,7 @@ NewsfbDevice::Putc(int ch) } void -NewsfbDevice::MonitorUpdate(Monitor *, TextScreen& screen) +NewsfbDevice::MonitorScreen(Monitor *, TextScreen& screen) { int row = console.GetRow(); int col = console.GetCol();