--- nono/wx/wxlcdwindow.h 2026/04/29 17:04:53 1.1.1.3 +++ nono/wx/wxlcdwindow.h 2026/04/29 17:04:59 1.1.1.5 @@ -10,8 +10,8 @@ #pragma once -#include "wxheader.h" -#include "wxbmp.h" +#include "wxnono.h" +#include "wxbitmapbuf.h" #include "wxsubwindow.h" // LCD パネル @@ -23,18 +23,14 @@ class WXLCDPanel : public wxPanel virtual ~WXLCDPanel() override; private: - void OnTimer(wxTimerEvent& event); + void OnLCDChanged(wxCommandEvent& event); void OnPaint(wxPaintEvent& event); void Draw(wxDC&); void DrawChar(wxDC&, int x, int y, uint8 ch); const uint8 *ddram {}; - WXBitmap bitmap {}; - - // 描画管理用 - uint32 count {}; - wxTimer timer {}; + WXBitmapBuf bitmap {}; wxDECLARE_EVENT_TABLE(); }; @@ -44,7 +40,7 @@ class WXLCDWindow : public WXSubWindow { using inherited = WXSubWindow; public: - WXLCDWindow(wxWindow *parent, wxWindowID id); + WXLCDWindow(wxWindow *parent); virtual ~WXLCDWindow() override; private: @@ -63,7 +59,7 @@ class WXLCDCharPanel : public WXPaddingP void OnPaint(wxPaintEvent& event); void Draw(wxDC&); - WXBitmap bitmap {}; + WXBitmapBuf bitmap {}; wxDECLARE_EVENT_TABLE(); }; @@ -73,7 +69,7 @@ class WXLCDMonitor : public WXSubWindow { using inherited = WXSubWindow; public: - WXLCDMonitor(wxWindow *parent, wxWindowID id); + WXLCDMonitor(wxWindow *parent); virtual ~WXLCDMonitor() override; private: