From ea9d53be79084ca212c5fca6b151f84ff1940647 Mon Sep 17 00:00:00 2001 From: Max Horn Date: Sun, 17 Oct 2004 19:40:34 +0000 Subject: [PATCH] cleanup svn-id: r15597 --- gui/newgui.cpp | 3 +-- scumm/imuse_digi/dimuse_bndmgr.h | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/gui/newgui.cpp b/gui/newgui.cpp index ab9d91c8f1f..4d9ec7f1b03 100644 --- a/gui/newgui.cpp +++ b/gui/newgui.cpp @@ -133,7 +133,7 @@ void NewGui::runLoop() { break; // We don't distinguish between mousebuttons (for now at least) case OSystem::EVENT_LBUTTONDOWN: - case OSystem::EVENT_RBUTTONDOWN: { + case OSystem::EVENT_RBUTTONDOWN: if (_lastClick.count && (time < _lastClick.time + kDoubleClickDelay) && ABS(_lastClick.x - event.mouse.x) < 3 && ABS(_lastClick.y - event.mouse.y) < 3) { @@ -144,7 +144,6 @@ void NewGui::runLoop() { _lastClick.count = 1; } _lastClick.time = time; - } activeDialog->handleMouseDown(event.mouse.x - activeDialog->_x, event.mouse.y - activeDialog->_y, 1, _lastClick.count); break; case OSystem::EVENT_LBUTTONUP: diff --git a/scumm/imuse_digi/dimuse_bndmgr.h b/scumm/imuse_digi/dimuse_bndmgr.h index da819493be3..e279a14eb81 100644 --- a/scumm/imuse_digi/dimuse_bndmgr.h +++ b/scumm/imuse_digi/dimuse_bndmgr.h @@ -89,7 +89,7 @@ public: namespace BundleCodecs { -uint32 decode12BitsSample(byte *src, byte **dst, uint32 size); +uint32 decode12BitsSample(const byte *src, byte **dst, uint32 size); void initializeImcTables(); #ifdef __PALM_OS__ void releaseImcTables();