--- nono/vm/tvram.cpp 2026/04/29 17:05:29 1.1.1.11 +++ nono/vm/tvram.cpp 2026/04/29 17:05:33 1.1.1.12 @@ -12,6 +12,7 @@ // バイトアクセス時は HLB()、ワードアクセス時は HLW() マクロを使用のこと。 #include "tvram.h" +#include "textscreen.h" #include "videoctlr.h" // InsideOut p.135 @@ -46,8 +47,7 @@ TVRAMDevice::Init() return false; } - renderer = GetRenderer(); - auto videoctlr = GetVideoCtlrDevice(); + videoctlr = GetVideoCtlrDevice(); // 加工済みパレットを取得 palette = &(videoctlr->GetHostPalette())[0]; @@ -186,7 +186,7 @@ TVRAMDevice::SetDirty(uint32 offset) // 更新フラグはラスタ単位 uint y = offset >> 7; - dirty[y] = 1; + dirty.line[y] = true; } // X 方向にはみ出したときに対応する仮想画面の Y 座標を返す。 @@ -209,7 +209,7 @@ void TVRAMDevice::SetScrollY(int y) { yscroll = y; - renderer->Invalidate2(); + Invalidate2(); } // CRTC R21 での同時アクセス設定を反映する。