mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-17 23:27:37 +00:00
Added references to the scaleX and scaleY selectors, used for SCI1.1 view scaling
svn-id: r45659
This commit is contained in:
parent
f755311114
commit
effdfcd4b8
engines/sci/engine
@ -242,6 +242,8 @@ void Kernel::mapSelectors() {
|
||||
FIND_SELECTOR(overlay);
|
||||
FIND_SELECTOR(setCursor);
|
||||
FIND_SELECTOR(topString);
|
||||
FIND_SELECTOR(scaleX);
|
||||
FIND_SELECTOR(scaleY);
|
||||
}
|
||||
|
||||
void Kernel::dumpScriptObject(char *data, int seeker, int objsize) {
|
||||
|
@ -82,11 +82,12 @@ static const SelectorRemap sci1SelectorRemap[] = {
|
||||
// Taken from KQ6 floppy (Full Game)
|
||||
static const SelectorRemap sci11SelectorRemap[] = {
|
||||
{ "nodePtr", 41 }, { "cantBeHere", 54 }, { "topString", 98 },
|
||||
{ "flags", 99 }, { "init", 110 }, { "dispose", 111 },
|
||||
{ "caller", 143 }, { "cue", 145 }, { "owner", 166 },
|
||||
{ "setVol", 172 }, { "setCursor", 197 }, { "completed", 242 },
|
||||
{ "cycler", 247 }, { "distance", 256 }, { "canBeHere", 264 },
|
||||
{ "syncTime", 279 }, { "syncCue", 280 }, { 0, 0 }
|
||||
{ "flags", 99 }, { "scaleX", 104 }, { "scaleY", 105 },
|
||||
{ "init", 110 }, { "dispose", 111 }, { "caller", 143 },
|
||||
{ "cue", 145 }, { "owner", 166 }, { "setVol", 172 },
|
||||
{ "setCursor", 197 }, { "completed", 242 }, { "cycler", 247 },
|
||||
{ "distance", 256 }, { "canBeHere", 264 }, { "syncTime", 279 },
|
||||
{ "syncCue", 280 }, { 0, 0 }
|
||||
};
|
||||
|
||||
Common::StringList Kernel::checkStaticSelectorNames() {
|
||||
|
@ -129,6 +129,7 @@ struct SelectorCache {
|
||||
Selector doit; /**< Called (!) by the Animate() system call */
|
||||
Selector signal; /**< Used by Animate() to control a view's behaviour */
|
||||
Selector underBits; /**< Used by the graphics subroutines to store backupped BG pic data */
|
||||
Selector scaleX, scaleY; /**< SCI1.1 view scaling */
|
||||
|
||||
/* The following selectors are used by the Bresenham syscalls: */
|
||||
Selector canBeHere; /**< Funcselector: Checks for movement validity */
|
||||
@ -496,6 +497,7 @@ const char *convertSierraGameId(const char *gameName, uint32 *gameFlags);
|
||||
*/
|
||||
int game_init(EngineState *s);
|
||||
|
||||
#ifdef INCLUDE_OLDGFX
|
||||
/**
|
||||
* Initializes the graphics part of an SCI game
|
||||
* This function may only be called if game_init() did not initialize
|
||||
@ -504,6 +506,7 @@ int game_init(EngineState *s);
|
||||
* @return 0 on success, 1 if an error occured
|
||||
*/
|
||||
int game_init_graphics(EngineState *s);
|
||||
#endif
|
||||
|
||||
/**
|
||||
* Initializes the sound part of an SCI game
|
||||
|
Loading…
Reference in New Issue
Block a user