[Scummvm-cvs-logs] SF.net SVN: scummvm:[49960] scummvm/trunk/engines/sci
fingolfin at users.sourceforge.net
fingolfin at users.sourceforge.net
Fri Jun 18 01:11:12 CEST 2010
Revision: 49960
http://scummvm.svn.sourceforge.net/scummvm/?rev=49960&view=rev
Author: fingolfin
Date: 2010-06-17 23:11:12 +0000 (Thu, 17 Jun 2010)
Log Message:
-----------
SCI: Rename sciEvent to SciEvent
Modified Paths:
--------------
scummvm/trunk/engines/sci/engine/kevent.cpp
scummvm/trunk/engines/sci/event.cpp
scummvm/trunk/engines/sci/event.h
scummvm/trunk/engines/sci/graphics/menu.cpp
scummvm/trunk/engines/sci/graphics/portrait.cpp
Modified: scummvm/trunk/engines/sci/engine/kevent.cpp
===================================================================
--- scummvm/trunk/engines/sci/engine/kevent.cpp 2010-06-17 23:10:37 UTC (rev 49959)
+++ scummvm/trunk/engines/sci/engine/kevent.cpp 2010-06-17 23:11:12 UTC (rev 49960)
@@ -41,7 +41,7 @@
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;
Modified: scummvm/trunk/engines/sci/event.cpp
===================================================================
--- scummvm/trunk/engines/sci/event.cpp 2010-06-17 23:10:37 UTC (rev 49959)
+++ scummvm/trunk/engines/sci/event.cpp 2010-06-17 23:11:12 UTC (rev 49960)
@@ -116,9 +116,9 @@
'?', 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 @@
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 @@
} 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;
Modified: scummvm/trunk/engines/sci/event.h
===================================================================
--- scummvm/trunk/engines/sci/event.h 2010-06-17 23:10:37 UTC (rev 49959)
+++ scummvm/trunk/engines/sci/event.h 2010-06-17 23:11:12 UTC (rev 49960)
@@ -34,7 +34,7 @@
#define SCI_INPUT_DEFAULT_REDRAWTIME 30000
-struct sciEvent {
+struct SciEvent {
short type;
short data;
short modifiers;
@@ -116,15 +116,15 @@
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
Modified: scummvm/trunk/engines/sci/graphics/menu.cpp
===================================================================
--- scummvm/trunk/engines/sci/graphics/menu.cpp 2010-06-17 23:10:37 UTC (rev 49959)
+++ scummvm/trunk/engines/sci/graphics/menu.cpp 2010-06-17 23:11:12 UTC (rev 49960)
@@ -681,7 +681,7 @@
}
GuiMenuItemEntry *GfxMenu::interactiveWithKeyboard() {
- sciEvent curEvent;
+ SciEvent curEvent;
uint16 newMenuId = _curMenuId;
uint16 newItemId = _curItemId;
GuiMenuItemEntry *curItemEntry = findItem(_curMenuId, _curItemId);
@@ -805,7 +805,7 @@
// 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();
Modified: scummvm/trunk/engines/sci/graphics/portrait.cpp
===================================================================
--- scummvm/trunk/engines/sci/graphics/portrait.cpp 2010-06-17 23:10:37 UTC (rev 49959)
+++ scummvm/trunk/engines/sci/graphics/portrait.cpp 2010-06-17 23:11:12 UTC (rev 49960)
@@ -166,7 +166,7 @@
// 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)) {
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Scummvm-git-logs
mailing list