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