- Fixed usage of kSetCursor in SCI1.1 games (e.g. when starting KQ6 floppy)
- Removed a static variable (vocab_version) - vocab.996 is now freed after creating the class table in SCI1 games, like in SCI0 games svn-id: r40979
This commit is contained in:
parent
c95e5fceee
commit
b242d05563
3 changed files with 39 additions and 38 deletions
|
@ -302,8 +302,15 @@ static gfx_color_t graph_map_color(EngineState *s, int color, int priority, int
|
|||
|
||||
reg_t kSetCursor(EngineState *s, int funct_nr, int argc, reg_t *argv) {
|
||||
switch (argc) {
|
||||
case 1 : // set cursor according to the first parameter
|
||||
GFX_ASSERT(gfxop_set_pointer_cursor(s->gfx_state, SKPV(0)));
|
||||
case 1 :
|
||||
if (s->version < SCI_VERSION_1_1) {
|
||||
// Pre-SCI1.1: set cursor according to the first parameter
|
||||
GFX_ASSERT(gfxop_set_pointer_cursor(s->gfx_state, SKPV(0)));
|
||||
} else {
|
||||
// SCI1.1: Hide cursor
|
||||
if (SKPV(0) == 0)
|
||||
GFX_ASSERT(gfxop_set_pointer_cursor(s->gfx_state, GFXOP_NO_POINTER));
|
||||
}
|
||||
break;
|
||||
case 2 :
|
||||
if (s->version < SCI_VERSION_1_1) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue