--- nono/vm/crtc2.h 2026/04/29 17:05:28 1.1.1.11 +++ nono/vm/crtc2.h 2026/04/29 17:05:50 1.1.1.13 @@ -11,8 +11,8 @@ #pragma once #include "device.h" -#include "event.h" +class LunafbDevice; class Renderer; 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] {}; + uint vdisp_state {}; + + LunafbDevice *lunafb {}; Renderer *renderer {}; - Event vdisp_event { this }; + Event *vdisp_event {}; };