--- nono/wx/wxtextscreen.h 2026/04/29 17:04:40 1.1.1.3 +++ nono/wx/wxtextscreen.h 2026/04/29 17:04:53 1.1.1.5 @@ -7,6 +7,7 @@ #pragma once #include "wxtextpanel.h" +#include "wxbmp.h" // // テキストスクリーンを表示するパネル @@ -47,17 +48,16 @@ class WXTextScreen : public WXTextPanel void OnSize(wxSizeEvent&); void OnTimer(wxTimerEvent&); + void Init(int col, int row); void Draw(wxDC& dc); - std::unique_ptr prevbuf {}; - std::unique_ptr bmpbuf {}; - std::unique_ptr image {}; - std::unique_ptr bitmap {}; + // コントロール全域のビットマップ + WXBitmap bitmap {}; + + std::vector prevbuf {}; IMonitor& monitor; - TextScreen ts; - int view_width = 0; - int view_height = 0; + TextScreen ts {}; wxTimer timer {};