--- nono/wx/wxpalettemonitor.h 2026/04/29 17:05:16 1.1 +++ nono/wx/wxpalettemonitor.h 2026/04/29 17:05:48 1.1.1.3 @@ -22,7 +22,7 @@ class WXPalettePanel : public WXTextPane { using inherited = WXTextPanel; public: - WXPalettePanel(wxWindow *parent); + explicit WXPalettePanel(wxWindow *parent); ~WXPalettePanel() override; void FontChanged() override; @@ -34,21 +34,23 @@ class WXPalettePanel : public WXTextPane void OnPaletteChanged(wxCommandEvent& event); // ホストパレット - std::vector pal {}; + std::vector pal {}; - // ゲストパレットを uint32 形式にしたもの。 - // Bt454 なら $0000'0RGB、 - // Bt458 なら $00RR'GGBB、 - // X68030 なら $0000'WWWW (テキストパレット生データ) - std::vector ipal {}; + // ゲストパレット。 + std::vector vcpal {}; // X68030 のパレットレジスタ + std::vector btpal {}; // Bt454/458 のパレット // パレット欄の行数 int rows {}; // パレット領域の開始オフセット [px] int pal0x {}; + int pal1x {}; // X68030 の右列 int pal0y {}; + // パレット番号に必要な16進桁数。 + uint idxlen {}; + // 現在指しているパレット int cursor {};