mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-29 13:16:18 +00:00
DREAMWEB: Simplified mouse button checks (thanks wjp, Tron)
This commit is contained in:
parent
6002e1a7ab
commit
ddddce3728
@ -2241,7 +2241,7 @@ void DreamGenContext::zoomOnOff() {
|
||||
data.byte(kCommandtype) = 222;
|
||||
commandOnly(39);
|
||||
}
|
||||
if (!(data.word(kMousebutton) & 1) || (data.word(kMousebutton) == data.word(kOldbutton)))
|
||||
if (!(data.word(kMousebutton) & 1) || data.word(kOldbutton) == 1)
|
||||
return;
|
||||
data.byte(kZoomon) ^= 1;
|
||||
createPanel();
|
||||
@ -3686,7 +3686,7 @@ void DreamGenContext::nextDest() {
|
||||
commandOnly(28);
|
||||
}
|
||||
|
||||
if (!(data.word(kMousebutton) & 1) || (data.word(kMousebutton) == data.word(kOldbutton)))
|
||||
if (!(data.word(kMousebutton) & 1) || data.word(kOldbutton) == 1)
|
||||
return; // nodu
|
||||
|
||||
do {
|
||||
@ -3717,7 +3717,7 @@ void DreamGenContext::lastDest() {
|
||||
commandOnly(29);
|
||||
}
|
||||
|
||||
if (!(data.word(kMousebutton) & 1) || (data.word(kMousebutton) == data.word(kOldbutton)))
|
||||
if (!(data.word(kMousebutton) & 1) || data.word(kOldbutton) == 1)
|
||||
return; // nodd
|
||||
|
||||
do {
|
||||
@ -3748,7 +3748,7 @@ void DreamGenContext::destSelect() {
|
||||
commandOnly(30);
|
||||
}
|
||||
|
||||
if (!(data.word(kMousebutton) & 1) || (data.word(kMousebutton) == data.word(kOldbutton)))
|
||||
if (!(data.word(kMousebutton) & 1) || data.word(kOldbutton) == 1)
|
||||
return; // notrav
|
||||
|
||||
getDestInfo();
|
||||
|
Loading…
Reference in New Issue
Block a user