diff options
author | Max Horn | 2002-10-22 12:05:04 +0000 |
---|---|---|
committer | Max Horn | 2002-10-22 12:05:04 +0000 |
commit | c8905a5c8a2bd08f55f0ffa85dc33b5b8e276de5 (patch) | |
tree | 52be9b1345f9fb9dcf2b174ba5bff3cc78212a0d | |
parent | 5151e561d504864a655b25512a933f3bf70bd3de (diff) | |
download | scummvm-rg350-c8905a5c8a2bd08f55f0ffa85dc33b5b8e276de5.tar.gz scummvm-rg350-c8905a5c8a2bd08f55f0ffa85dc33b5b8e276de5.tar.bz2 scummvm-rg350-c8905a5c8a2bd08f55f0ffa85dc33b5b8e276de5.zip |
fixed SIMONDEBUG; some cleanup
svn-id: r5240
-rw-r--r-- | simon/debug.cpp | 3 | ||||
-rw-r--r-- | simon/intern.h | 32 | ||||
-rw-r--r-- | simon/simon.cpp | 1 | ||||
-rw-r--r-- | simon/vga.cpp | 25 | ||||
-rw-r--r-- | simon/vga.h | 83 |
5 files changed, 87 insertions, 57 deletions
diff --git a/simon/debug.cpp b/simon/debug.cpp index 6b1902c6b7..4701708bf5 100644 --- a/simon/debug.cpp +++ b/simon/debug.cpp @@ -23,6 +23,7 @@ #include "stdafx.h" #include "simon/simon.h" #include "simon/intern.h" +#include "simon/vga.h" #ifdef SIMONDEBUG #define SIMON2 @@ -762,7 +763,7 @@ void SimonState::dump_vga_script_always(byte *ptr, uint res, uint sprite_id) void SimonState::dump_vga_script(byte *ptr, uint res, uint sprite_id) { - dump_Vga_script_always(ptr, res, sprite_id); + dump_vga_script_always(ptr, res, sprite_id); } diff --git a/simon/intern.h b/simon/intern.h index 2536534844..36629ab726 100644 --- a/simon/intern.h +++ b/simon/intern.h @@ -117,38 +117,6 @@ struct TimeEvent { TimeEvent *next; }; -struct VgaFile1Header { - uint16 x_1, x_2; - uint16 hdr2_start; - uint16 x_3, x_4; -}; - -struct VgaFile1Header2 { - uint16 x_1; - uint16 unk1; - uint16 x_2; - uint16 id_count; - uint16 x_3; - uint16 unk2_offs; - uint16 x_4; - uint16 id_table; - uint16 x_5; -}; - -struct VgaFile1Struct0x8 { - uint16 id; - uint16 x_1; - uint16 x_2; - uint16 script_offs; -}; - -struct VgaFile1Struct0x6 { - uint16 id; - uint16 x_2; - uint16 script_offs; -}; - - struct GameSpecificSettings { uint VGA_DELAY_BASE; uint TABLE_INDEX_BASE; diff --git a/simon/simon.cpp b/simon/simon.cpp index 55fdaa53a3..7ada2acfa3 100644 --- a/simon/simon.cpp +++ b/simon/simon.cpp @@ -22,6 +22,7 @@ #include "stdafx.h" #include "simon/simon.h" #include "simon/intern.h" +#include "simon/vga.h" #include "sound/mididrv.h" #include "common/gameDetector.h" #include <errno.h> diff --git a/simon/vga.cpp b/simon/vga.cpp index bbffb53611..a34ebf0d29 100644 --- a/simon/vga.cpp +++ b/simon/vga.cpp @@ -23,6 +23,7 @@ #include "stdafx.h" #include "simon/simon.h" #include "simon/intern.h" +#include "simon/vga.h" typedef void (SimonState::*VgaOpcodeProc) (); static const uint16 vc_get_out_of_code = 0; @@ -407,30 +408,6 @@ void SimonState::vc_9_maybe_skip() vc_skip_next_instruction(); } -struct VC10_state { - int image; - uint16 e; - int x, y; - - byte base_color; - - uint draw_width, draw_height; - uint x_skip, y_skip; - - byte *surf2_addr; - uint surf2_pitch; - - byte *surf_addr; - uint surf_pitch; - - byte dl, dh; - - byte *depack_src; - int8 depack_cont; - - byte depack_dest[200]; -}; - byte *vc_10_depack_column(VC10_state * vs) { int8 a = vs->depack_cont; diff --git a/simon/vga.h b/simon/vga.h new file mode 100644 index 0000000000..071539c56d --- /dev/null +++ b/simon/vga.h @@ -0,0 +1,83 @@ +/* ScummVM - Scumm Interpreter + * Copyright (C) 2002 The ScummVM project + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License + * as published by the Free Software Foundation; either version 2 + * of the License, or (at your option) any later version. + + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + * + * $Header$ + * + */ + +#ifndef SIMON_VGA_H +#define SIMON_VGA_H + +struct VgaFile1Header { + uint16 x_1, x_2; + uint16 hdr2_start; + uint16 x_3, x_4; +}; + +struct VgaFile1Header2 { + uint16 x_1; + uint16 unk1; + uint16 x_2; + uint16 id_count; + uint16 x_3; + uint16 unk2_offs; + uint16 x_4; + uint16 id_table; + uint16 x_5; +}; + +struct VgaFile1Struct0x8 { + uint16 id; + uint16 x_1; + uint16 x_2; + uint16 script_offs; +}; + +struct VgaFile1Struct0x6 { + uint16 id; + uint16 x_2; + uint16 script_offs; +}; + +struct VC10_state { + int image; + uint16 e; + int x, y; + + byte base_color; + + uint draw_width, draw_height; + uint x_skip, y_skip; + + byte *surf2_addr; + uint surf2_pitch; + + byte *surf_addr; + uint surf_pitch; + + byte dl, dh; + + byte *depack_src; + int8 depack_cont; + + byte depack_dest[200]; +}; + +byte *vc_10_depack_column(VC10_state * vs); + + +#endif |