aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorMax Horn2010-06-17 23:11:12 +0000
committerMax Horn2010-06-17 23:11:12 +0000
commita2bcf9ac31d025d09fabcd2d636eeb34d3c75df0 (patch)
tree6a99a8769777c41f2d2f24e904a98b128f0fb7da /engines
parent8e07a1e16768548112a290d04348e26173e8afa0 (diff)
downloadscummvm-rg350-a2bcf9ac31d025d09fabcd2d636eeb34d3c75df0.tar.gz
scummvm-rg350-a2bcf9ac31d025d09fabcd2d636eeb34d3c75df0.tar.bz2
scummvm-rg350-a2bcf9ac31d025d09fabcd2d636eeb34d3c75df0.zip
SCI: Rename sciEvent to SciEvent
svn-id: r49960
Diffstat (limited to 'engines')
-rw-r--r--engines/sci/engine/kevent.cpp2
-rw-r--r--engines/sci/event.cpp10
-rw-r--r--engines/sci/event.h8
-rw-r--r--engines/sci/graphics/menu.cpp4
-rw-r--r--engines/sci/graphics/portrait.cpp2
5 files changed, 13 insertions, 13 deletions
diff --git a/engines/sci/engine/kevent.cpp b/engines/sci/engine/kevent.cpp
index 718da6c3d3..2f1afd4358 100644
--- a/engines/sci/engine/kevent.cpp
+++ b/engines/sci/engine/kevent.cpp
@@ -41,7 +41,7 @@ namespace Sci {
reg_t kGetEvent(EngineState *s, int argc, reg_t *argv) {
int mask = argv[0].toUint16();
reg_t obj = argv[1];
- sciEvent curEvent;
+ SciEvent curEvent;
int oldx, oldy;
int modifier_mask = getSciVersion() <= SCI_VERSION_01 ? SCI_KEYMOD_ALL : SCI_KEYMOD_NO_FOOLOCK;
SegManager *segMan = s->_segMan;
diff --git a/engines/sci/event.cpp b/engines/sci/event.cpp
index 6681e12008..9ba4f166b4 100644
--- a/engines/sci/event.cpp
+++ b/engines/sci/event.cpp
@@ -116,9 +116,9 @@ static const byte codepagemap_88591toDOS[0x80] = {
'?', 0xa4, 0x95, 0xa2, 0x93, '?', 0x94, '?', '?', 0x97, 0xa3, 0x96, 0x81, '?', '?', 0x98 // 0xFx
};
-sciEvent EventManager::getScummVMEvent() {
+SciEvent EventManager::getScummVMEvent() {
static int _modifierStates = 0; // FIXME: Avoid non-const global vars
- sciEvent input = { SCI_EVENT_NONE, 0, 0, 0 };
+ SciEvent input = { SCI_EVENT_NONE, 0, 0, 0 };
Common::EventManager *em = g_system->getEventManager();
Common::Event ev;
@@ -317,9 +317,9 @@ sciEvent EventManager::getScummVMEvent() {
return input;
}
-sciEvent EventManager::getSciEvent(unsigned int mask) {
+SciEvent EventManager::getSciEvent(unsigned int mask) {
//sci_event_t error_event = { SCI_EVT_ERROR, 0, 0, 0 };
- sciEvent event = { 0, 0, 0, 0 };
+ SciEvent event = { 0, 0, 0, 0 };
// Update the screen here, since it's called very often.
// Throttle the screen update rate to 60fps.
@@ -336,7 +336,7 @@ sciEvent EventManager::getSciEvent(unsigned int mask) {
} while (event.type != SCI_EVENT_NONE);
// Search for matching event in queue
- Common::List<sciEvent>::iterator iter = _events.begin();
+ Common::List<SciEvent>::iterator iter = _events.begin();
while (iter != _events.end() && !((*iter).type & mask))
++iter;
diff --git a/engines/sci/event.h b/engines/sci/event.h
index b973733f48..bdfbf4bebe 100644
--- a/engines/sci/event.h
+++ b/engines/sci/event.h
@@ -34,7 +34,7 @@ namespace Sci {
#define SCI_INPUT_DEFAULT_REDRAWTIME 30000
-struct sciEvent {
+struct SciEvent {
short type;
short data;
short modifiers;
@@ -116,15 +116,15 @@ public:
EventManager(ResourceManager *resMgr);
~EventManager();
- sciEvent getSciEvent(unsigned int mask);
+ SciEvent getSciEvent(unsigned int mask);
private:
- sciEvent getScummVMEvent();
+ SciEvent getScummVMEvent();
ResourceManager *_resMan;
bool _fontIsExtended;
- Common::List<sciEvent> _events;
+ Common::List<SciEvent> _events;
};
} // End of namespace Sci
diff --git a/engines/sci/graphics/menu.cpp b/engines/sci/graphics/menu.cpp
index f5eac70ccd..00eb533b41 100644
--- a/engines/sci/graphics/menu.cpp
+++ b/engines/sci/graphics/menu.cpp
@@ -681,7 +681,7 @@ uint16 GfxMenu::mouseFindMenuItemSelection(Common::Point mousePosition, uint16 m
}
GuiMenuItemEntry *GfxMenu::interactiveWithKeyboard() {
- sciEvent curEvent;
+ SciEvent curEvent;
uint16 newMenuId = _curMenuId;
uint16 newItemId = _curItemId;
GuiMenuItemEntry *curItemEntry = findItem(_curMenuId, _curItemId);
@@ -805,7 +805,7 @@ GuiMenuItemEntry *GfxMenu::interactiveWithKeyboard() {
// The menu item that is selected at that time is chosen. If no menu item is selected we cancel
// No keyboard interaction is allowed, cause that wouldnt make any sense at all
GuiMenuItemEntry *GfxMenu::interactiveWithMouse() {
- sciEvent curEvent;
+ SciEvent curEvent;
uint16 newMenuId = 0, newItemId = 0;
uint16 curMenuId = 0, curItemId = 0;
Common::Point mousePosition = _cursor->getPosition();
diff --git a/engines/sci/graphics/portrait.cpp b/engines/sci/graphics/portrait.cpp
index 9c113cf5f4..8f4fe094a8 100644
--- a/engines/sci/graphics/portrait.cpp
+++ b/engines/sci/graphics/portrait.cpp
@@ -166,7 +166,7 @@ void Portrait::doit(Common::Point position, uint16 resourceId, uint16 noun, uint
// Do animation depending on sync resource till audio is done playing
uint16 syncCue;
int timerPosition, curPosition;
- sciEvent curEvent;
+ SciEvent curEvent;
bool userAbort = false;
while ((syncOffset < syncResource->size - 2) && (!userAbort)) {