Windowsでコンパイルエラーの修正

This commit is contained in:
2026-05-03 19:30:31 +09:00
parent 07d377fbe8
commit 8fa73f9938

View File

@@ -763,12 +763,22 @@ void HexEditor::handleReplace() {
}
void HexEditor::handleMouse() {
#ifdef _WIN32
if (getmouse() == 0) return;
int mx = Mouse_status.x;
int my = Mouse_status.y;
if (!(Mouse_status.button[0] & BUTTON1_PRESSED)
|| (Mouse_status.changes & 0x01)) return;
#else
MEVENT event;
if (getmouse(&event) != OK) return;
if (!(event.bstate & BUTTON1_PRESSED)) return;
int mx = event.x;
int my = event.y;
#endif
if (my == 0 || my == rows - 1) return;
if (my >= 1 && my < rows - 2 && mx < cols / 2) {