--- nono/wx/wxsoftkey.cpp 2026/04/29 17:05:16 1.1.1.13 +++ nono/wx/wxsoftkey.cpp 2026/04/29 17:05:27 1.1.1.14 @@ -363,7 +363,7 @@ WXSoftKeyPanel::DrawKey(const keydata_t& } else { // 2行に分割。センタリングは1行目の長さだけで調べる。 strncpy(sjis1, sjis, lf - sjis); - strcpy(sjis2, lf + 1); + strlcpy(sjis2, lf + 1, sizeof(sjis2)); sjislen = strlen(sjis1); row = 2; } @@ -381,7 +381,7 @@ WXSoftKeyPanel::DrawKey(const keydata_t& x = x * unit + 1; y = y * unit + 1; if (strcmp(disp, EnterMark) == 0) { - bitmap.DrawBitmap(x, y, *enter_icon, palette); + bitmap.DrawBitmapI1(x, y, *enter_icon, palette); } else { if (lf == NULL) { // 1行の場合 @@ -424,7 +424,7 @@ WXSoftKeyPanel::DrawEnterKey() enter_top.x, enter_top.GetBottom(), enter_top.y); // エンター記号を描画 - bitmap.DrawBitmap( + bitmap.DrawBitmapI1( (enter_top.x + enter_top.GetRight()) / 2 - (4 / 2), (enter_top.y + enter_btm.GetBottom()) / 2 - (4 / 2), *enter_icon, palette); @@ -931,7 +931,7 @@ WXX68kSoftKeyPanel::WXX68kSoftKeyPanel(w { // X68k では SRAM 設定に同期させる。 const auto sram = GetSRAMDevice(); - uint8 sw = sram->Peek8(0xed0059); + uint8 sw = sram->Peek1(0xed0059); gFontManager->SetGlyph5C((sw & 0x01)); gFontManager->SetGlyph7E((sw & 0x02)); gFontManager->SetGlyph7C((sw & 0x04));