--- nono/vm/newsio.h 2026/04/29 17:05:29 1.1.1.3 +++ nono/vm/newsio.h 2026/04/29 17:06:00 1.1.1.5 @@ -11,7 +11,7 @@ #pragma once #include "device.h" -#include "monitor.h" +#include "textscreen.h" #include class NewsCtlrDevice; @@ -34,7 +34,7 @@ class NewsIODevice : public IODevice inline IODevice *SearchDevice(uint32 addr) const; void InitMonitor(); - DECLARE_MONITOR_CALLBACK(MonitorUpdate); + DECLARE_MONITOR_SCREEN(MonitorScreen); std::unique_ptr pKBC {}; std::unique_ptr pLance {}; @@ -47,12 +47,12 @@ class NewsIODevice : public IODevice NewsCtlrDevice *newsctlr {}; - Monitor monitor { this }; + Monitor *monitor {}; // 裏バッファ TextScreen src_screen {}; }; -static inline NewsIODevice *GetNewsIODevice() { +inline NewsIODevice *GetNewsIODevice() { return Object::GetObject(OBJ_NEWSIO); }