--- nono/vm/crtc2.h 2026/04/29 17:05:28 1.1.1.11 +++ nono/vm/crtc2.h 2026/04/29 17:05:55 1.1.1.14 @@ -11,9 +11,9 @@ #pragma once #include "device.h" -#include "event.h" -class Renderer; +class LunafbDevice; +class VideoRenderer; class CRTC2Device : public IODevice { @@ -35,7 +35,7 @@ class CRTC2Device : public IODevice private: // 垂直表示期間イベント - void VDispCallback(Event& ev); + void VDispCallback(Event *); // アドレスレジスタ uint ar {}; @@ -43,7 +43,10 @@ class CRTC2Device : public IODevice // レジスタ uint8 reg[40] {}; - Renderer *renderer {}; + uint vdisp_state {}; - Event vdisp_event { this }; + LunafbDevice *lunafb {}; + VideoRenderer *renderer {}; + + Event *vdisp_event {}; };