--- nono/vm/newsfb.cpp 2026/04/29 17:05:17 1.1 +++ nono/vm/newsfb.cpp 2026/04/29 17:05:33 1.1.1.2 @@ -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->func = ToMonitorCallback(&NewsfbDevice::MonitorUpdate); + monitor->SetSize(console.GetCol(), console.GetRow()); } // デストラクタ