--- nono/wx/wxaccstatmonitor.cpp 2026/04/29 17:05:27 1.1.1.1 +++ nono/wx/wxaccstatmonitor.cpp 2026/04/29 17:05:31 1.1.1.2 @@ -14,14 +14,16 @@ #include "wxcolor.h" #include "wxtextscreen.h" #include "bankram.h" +#include "mainapp.h" #include "mainbus.h" +#include "monitor.h" // // アクセス状況 (グラフィカル) パネル // // コンストラクタ -WXAccStatPanel::WXAccStatPanel(wxWindow *parent, Monitor& monitor_) +WXAccStatPanel::WXAccStatPanel(wxWindow *parent, Monitor *monitor_) : inherited(parent, monitor_) { // デバイスを取得 @@ -49,7 +51,7 @@ WXAccStatPanel::FontChanged() { inherited::FontChanged(); - auto monsz = mainbus->monitor_accstat.GetSize(); + auto monsz = mainbus->accstat_monitor->GetSize(); wxSize size( WXTextScreen::DefaultPadding * 2 + monsz.width * font_width, WXTextScreen::DefaultPadding * 2 + monsz.height * font_height); @@ -210,7 +212,7 @@ WXAccStatPanel::CopyLine(int cx, int py, // // コンストラクタ -WXAccStatWindow::WXAccStatWindow(wxWindow *parent, Monitor& monitor_) +WXAccStatWindow::WXAccStatWindow(wxWindow *parent, Monitor *monitor_) : inherited(parent, wxID_ANY, _("Access Status")) { new WXAccStatPanel(this, monitor_);