aboutsummaryrefslogtreecommitdiff
path: root/engines/dreamweb/keypad.cpp
diff options
context:
space:
mode:
authorMax Horn2011-12-20 09:44:00 +0100
committerFilippos Karapetis2011-12-23 03:39:44 +0200
commitcdc6bc421bef6ed0119819a92fba1b2b9283ce17 (patch)
treeb29584366bf54f343b6cdd2c82c28fb965ead597 /engines/dreamweb/keypad.cpp
parenta4ffb8fe54c41c957f506c127c6aa30586769c52 (diff)
downloadscummvm-rg350-cdc6bc421bef6ed0119819a92fba1b2b9283ce17.tar.gz
scummvm-rg350-cdc6bc421bef6ed0119819a92fba1b2b9283ce17.tar.bz2
scummvm-rg350-cdc6bc421bef6ed0119819a92fba1b2b9283ce17.zip
DREAMWEB: Turn RectWithCallback into template
Also moves checkCoords to DreamBase, adding a nasty cast to it. This is a temporary HACK, which allows moving functions that use checkCoords to DreamBase one at a time, instead of all at once (and at the same time as checkCoords). This can be undone once everything using checkCoords has been moved to DreamBase.
Diffstat (limited to 'engines/dreamweb/keypad.cpp')
-rw-r--r--engines/dreamweb/keypad.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/dreamweb/keypad.cpp b/engines/dreamweb/keypad.cpp
index 43f6749cad..b3ed844079 100644
--- a/engines/dreamweb/keypad.cpp
+++ b/engines/dreamweb/keypad.cpp
@@ -93,7 +93,7 @@ void DreamBase::addToPressList() {
}
void DreamGenContext::enterCode(uint8 digit0, uint8 digit1, uint8 digit2, uint8 digit3) {
- RectWithCallback keypadList[] = {
+ RectWithCallback<DreamGenContext> keypadList[] = {
{ kKeypadx+9,kKeypadx+30,kKeypady+9,kKeypady+22,&DreamBase::buttonOne },
{ kKeypadx+31,kKeypadx+52,kKeypady+9,kKeypady+22,&DreamBase::buttonTwo },
{ kKeypadx+53,kKeypadx+74,kKeypady+9,kKeypady+22,&DreamBase::buttonThree },