--- nono/wx/wxtextpanel.cpp 2026/04/29 17:05:08 1.1.1.8 +++ nono/wx/wxtextpanel.cpp 2026/04/29 17:05:27 1.1.1.10 @@ -14,8 +14,9 @@ #include "sjis.h" // コンストラクタ -WXTextPanel::WXTextPanel(wxWindow *parent, const wxSize& size, long style) - : inherited(parent, size, style) +WXTextPanel::WXTextPanel(wxWindow *parent, wxWindowID id, + const wxPoint& position, const wxSize& size, long style) + : inherited(parent, id, position, size, style) { // デフォルト色 ResetTextColor(); @@ -102,7 +103,7 @@ WXTextPanel::DrawChar1(int px, int py, u glyph = gFontManager->AsciiGlyph(code, attr); BitmapI1 src(glyph, font_width, font_height); - bitmap.DrawBitmap(px, py, src, palette); + bitmap.DrawBitmapI1(px, py, src, palette); } // (px, py) を左上とする座標から漢字1文字を属性 attr で描画する。 @@ -115,5 +116,5 @@ WXTextPanel::DrawChar2(int px, int py, u glyph = gFontManager->KanjiGlyph(sjiscode, attr); BitmapI1 src(glyph.data(), font_width * 2, font_height); - bitmap.DrawBitmap(px, py, src, palette); + bitmap.DrawBitmapI1(px, py, src, palette); }