OSDN Git Service
(root)
/
hengbandforosx
/
hengbandosx.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
097166b
)
[Fix] Windows版でマクロ実行中は画面をマウス選択不可に制限する
author
shimitei
<shimitei@gmail.com>
Sat, 22 May 2021 07:37:56 +0000
(16:37 +0900)
committer
shimitei
<shimitei@gmail.com>
Sat, 22 May 2021 07:37:56 +0000
(16:37 +0900)
src/main-win.cpp
patch
|
blob
|
history
diff --git
a/src/main-win.cpp
b/src/main-win.cpp
index
0edf83d
..
1e67dbc
100644
(file)
--- a/
src/main-win.cpp
+++ b/
src/main-win.cpp
@@
-2104,6
+2104,8
@@
LRESULT PASCAL AngbandWndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam
return 0;
}
case WM_LBUTTONDOWN: {
+ if (macro_running())
+ return 0;
mousex = MIN(LOWORD(lParam) / td->tile_wid, td->cols - 1);
mousey = MIN(HIWORD(lParam) / td->tile_hgt, td->rows - 1);
mouse_down = TRUE;
@@
-2112,6
+2114,8
@@
LRESULT PASCAL AngbandWndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam
return 0;
}
case WM_LBUTTONUP: {
+ if (!mouse_down)
+ return 0;
HGLOBAL hGlobal;
LPSTR lpStr;
TERM_LEN dx = abs(oldx - mousex) + 1;