Opened 18 years ago
Closed 3 years ago
#3799 closed defect (fixed)
DRASCULA: slowdown when you hold mouse buttons
| Reported by: | SF/glorifindel | Owned by: | tag2015 |
|---|---|---|---|
| Priority: | normal | Component: | Engine: Drascula |
| Version: | Keywords: | slowdown, mouse | |
| Cc: | Game: | Drascula |
Description
I'm using the italian version of Drascula with the current SVN build (on Win32), and when I click anywhere on screen and hold the mouse button the game slows down. The save/load menu also has some glitches: when you type the name of the saved game some letters sometimes are not displayed and there is a strange gap from when you type to when the letter appears in the box. Wouldn't be better to adopt the standard SCUMM interface for the save/load menu (as in Nippon Safes Inc)?
Ticket imported from: #2011470. Ticket imported from: bugs/3799.
Change History (14)
comment:1 by , 18 years ago
comment:2 by , 18 years ago
| Owner: | set to |
|---|---|
| Priority: | normal → high |
comment:3 by , 18 years ago
At least some of this might be because the pause() and delay() functions don't process events.
comment:4 by , 18 years ago
| Owner: | changed from to |
|---|---|
| Resolution: | → fixed |
| Status: | new → closed |
comment:5 by , 18 years ago
Fixed in SVN and backported. The delays were used there pretty illogically. And each mousedown generated 200ms delay.
comment:7 by , 18 years ago
| Resolution: | fixed |
|---|---|
| Status: | closed → new |
comment:10 by , 16 years ago
| Resolution: | → fixed |
|---|---|
| Status: | new → closed |
comment:11 by , 16 years ago
I fixed it by reacting on button up event in right mouse. Quite controversal one, but it was the only option without serious rework. Please test.
comment:12 by , 4 years ago
| Keywords: | slowdown mouse added |
|---|---|
| Priority: | high → normal |
| Resolution: | fixed |
| Status: | closed → new |
This happens again with ScummVM 2.6.0.
Just start the game (English version here) and keep the left-mouse button pressed when walking: all the characters slow down.
(Doctors would say "then, don't do this" though ;)
comment:13 by , 4 years ago
This code in drascula.cpp seems to be responsible for the slowdown:
if (_leftMouseButton == 1 && _menuBar) {
selectVerbFromBar();
} else if (_leftMouseButton == 1 && takeObject == 0) {
if (verify1())
return true;
delay(100);
} else if (_leftMouseButton == 1 && takeObject == 1) {
if (verify2())
return true;
}
When I try it, it enters the case where it calls delay(100) I don't know the purpose of that, though
comment:14 by , 3 years ago
| Owner: | changed from to |
|---|---|
| Resolution: | → fixed |
| Status: | new → closed |
Fixed by this PR:
https://github.com/scummvm/scummvm/pull/4922
Closing

This bug is nice to get fixed before the release.