--- nono/vm/lcd.h 2026/04/29 17:05:33 1.1.1.13 +++ nono/vm/lcd.h 2026/04/29 17:06:01 1.1.1.15 @@ -12,6 +12,8 @@ #include "device.h" +class UIMessage; + class LCDDevice : public Device { using inherited = Device; @@ -19,6 +21,7 @@ class LCDDevice : public Device LCDDevice(); ~LCDDevice() override; + bool Init() override; void ResetHard(bool poweron) override; void PowerOff() override; @@ -55,7 +58,7 @@ class LCDDevice : public Device const uint8 *GetFont(uint ch) const; private: - DECLARE_MONITOR_CALLBACK(MonitorUpdate); + DECLARE_MONITOR_SCREEN(MonitorScreen); // 現在のアドレスでデータレジスタにラッチ void LatchData(); @@ -84,9 +87,11 @@ class LCDDevice : public Device Monitor *monitor {}; + UIMessage *uimessage {}; + static const uint8 CGROM[12 * 16 * 8]; }; -static inline LCDDevice *GetLCDDevice() { +inline LCDDevice *GetLCDDevice() { return Object::GetObject(OBJ_LCD); }