aboutsummaryrefslogtreecommitdiff
path: root/engines/sci/graphics/maciconbar.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/sci/graphics/maciconbar.cpp')
-rw-r--r--engines/sci/graphics/maciconbar.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/engines/sci/graphics/maciconbar.cpp b/engines/sci/graphics/maciconbar.cpp
index 3a62760398..c5c2fb97af 100644
--- a/engines/sci/graphics/maciconbar.cpp
+++ b/engines/sci/graphics/maciconbar.cpp
@@ -245,10 +245,10 @@ bool GfxMacIconBar::pointOnIcon(uint32 iconIndex, Common::Point point) {
reg_t GfxMacIconBar::handleEvents() {
// Peek event queue for a mouse button press
EventManager *evtMgr = g_sci->getEventManager();
- SciEvent evt = evtMgr->getSciEvent(SCI_EVENT_MOUSE_PRESS | SCI_EVENT_PEEK);
+ SciEvent evt = evtMgr->getSciEvent(kSciEventMousePress | kSciEventPeek);
// No mouse press found
- if (evt.type == SCI_EVENT_NONE)
+ if (evt.type == kSciEventNone)
return NULL_REG;
// If the mouse is not over the icon bar, return
@@ -256,7 +256,7 @@ reg_t GfxMacIconBar::handleEvents() {
return NULL_REG;
// Remove event from queue
- evtMgr->getSciEvent(SCI_EVENT_MOUSE_PRESS);
+ evtMgr->getSciEvent(kSciEventMousePress);
// Mouse press on the icon bar, check the icon rectangles
uint iconNr;
@@ -273,14 +273,14 @@ reg_t GfxMacIconBar::handleEvents() {
bool isSelected = true;
// Wait for mouse release
- while (evt.type != SCI_EVENT_MOUSE_RELEASE) {
+ while (evt.type != kSciEventMouseRelease) {
// Mimic behavior of SSCI when moving mouse with button held down
if (isSelected != pointOnIcon(iconNr, evt.mousePos)) {
isSelected = !isSelected;
drawIcon(iconNr, isSelected);
}
- evt = evtMgr->getSciEvent(SCI_EVENT_MOUSE_RELEASE);
+ evt = evtMgr->getSciEvent(kSciEventMouseRelease);
g_system->delayMillis(10);
}