aboutsummaryrefslogtreecommitdiff
path: root/engines/titanic/gfx/toggle_switch.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/titanic/gfx/toggle_switch.cpp')
-rw-r--r--engines/titanic/gfx/toggle_switch.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/titanic/gfx/toggle_switch.cpp b/engines/titanic/gfx/toggle_switch.cpp
index 815f96cb5a..dae9acba0e 100644
--- a/engines/titanic/gfx/toggle_switch.cpp
+++ b/engines/titanic/gfx/toggle_switch.cpp
@@ -52,9 +52,9 @@ void CToggleSwitch::load(SimpleFile *file) {
bool CToggleSwitch::MouseButtonUpMsg(CMouseButtonUpMsg *msg) {
_pressed = !_pressed;
if (_pressed)
- fn10(0, 0, 0);
+ setToggleColor(0, 0, 0);
else
- fn10(0xff, 0xff, 0xff);
+ setToggleColor(0xff, 0xff, 0xff);
return true;
}