OSDN Git Service
(root)
/
csp-qt
/
common_source_project-fm7.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
048fbfb
)
[VM][PC9801][MOUSE] Set clock to 120Hz when resetting.
author
K.Ohta
<whatisthis.sowhat@gmail.com>
Thu, 16 May 2019 20:36:51 +0000
(
05:36
+0900)
committer
K.Ohta
<whatisthis.sowhat@gmail.com>
Thu, 16 May 2019 20:36:51 +0000
(
05:36
+0900)
source/src/vm/pc9801/mouse.cpp
patch
|
blob
|
history
diff --git
a/source/src/vm/pc9801/mouse.cpp
b/source/src/vm/pc9801/mouse.cpp
index
e6ecd18
..
a2f2c22
100644
(file)
--- a/
source/src/vm/pc9801/mouse.cpp
+++ b/
source/src/vm/pc9801/mouse.cpp
@@
-42,6
+42,12
@@
void MOUSE::reset()
{
dx = dy = 0;
lx = ly = -1;
+ if(register_id >= 0) {
+ cancel_event(this, register_id);
+ }
+ register_event(this, EVENT_TIMER, 1000000.0 / 120.0, true, ®ister_id);
+ cur_freq = 0;
+ freq = 0;
}
#if !defined(SUPPORT_HIRESO)