--- nono/vm/bt45x.cpp 2026/04/29 17:05:28 1.1.1.4 +++ nono/vm/bt45x.cpp 2026/04/29 17:05:33 1.1.1.5 @@ -28,9 +28,10 @@ #include "bt45x.h" #include "config.h" +#include "lunafb.h" #include "mainapp.h" +#include "monitor.h" #include "prom.h" -#include "renderer.h" #include "uimessage.h" // @@ -42,7 +43,7 @@ BT45xDevice::BT45xDevice() : inherited(OBJ_BT45x) { // func, size は継承先で決まる - monitor.Regist(ID_MONITOR_BT45x); + monitor = gMonitorManager->Regist(ID_MONITOR_BT45x, this); } // デストラクタ @@ -84,7 +85,7 @@ BT45xDevice::Init() assert(n >= 0); nplane = n; - renderer = GetRenderer(); + lunafb = GetLunafbDevice(); // 継承先のコンストラクタでセットしている。 assert(palettes != 0); @@ -349,7 +350,7 @@ void BT45xDevice::Notify() { // パレット変更が起きたことをレンダラに通知 - renderer->Invalidate2(); + lunafb->Invalidate2(); // UI にも通知 UIMessage::Post(UIMessage::PALETTE); @@ -374,8 +375,8 @@ BT454Device::BT454Device() // 使わないけど一応 readmask = 0x0f; - monitor.func = ToMonitorCallback(&BT454Device::MonitorUpdate); - monitor.SetSize(63, 3); + monitor->func = ToMonitorCallback(&BT454Device::MonitorUpdate); + monitor->SetSize(63, 3); } // デストラクタ @@ -451,8 +452,8 @@ BT458Device::BT458Device() // 初期化されないそうなのでゴミを入れておく readmask = 0xcc; - monitor.func = ToMonitorCallback(&BT458Device::MonitorUpdate); - monitor.SetSize(116, 18); + monitor->func = ToMonitorCallback(&BT458Device::MonitorUpdate); + monitor->SetSize(116, 18); } // デストラクタ