diff options
author | uruk | 2013-06-18 10:23:29 +0200 |
---|---|---|
committer | uruk | 2013-06-18 10:23:29 +0200 |
commit | 38bc20a0763f0f83ea3c0a94a68a1edea0d08514 (patch) | |
tree | 8d71d5d2dec96e83e2fcce7c5378e9f2da94130e /engines/avalanche/magidraw.cpp | |
parent | a3025b8dad7abfe845c57aee3703451c223fc2e6 (diff) | |
download | scummvm-rg350-38bc20a0763f0f83ea3c0a94a68a1edea0d08514.tar.gz scummvm-rg350-38bc20a0763f0f83ea3c0a94a68a1edea0d08514.tar.bz2 scummvm-rg350-38bc20a0763f0f83ea3c0a94a68a1edea0d08514.zip |
AVALANCHE: Use Artistic Style.
Diffstat (limited to 'engines/avalanche/magidraw.cpp')
-rw-r--r-- | engines/avalanche/magidraw.cpp | 49 |
1 files changed, 26 insertions, 23 deletions
diff --git a/engines/avalanche/magidraw.cpp b/engines/avalanche/magidraw.cpp index 241f69265b..0f280c29e0 100644 --- a/engines/avalanche/magidraw.cpp +++ b/engines/avalanche/magidraw.cpp @@ -11,7 +11,7 @@ * 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 + * 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 @@ -32,30 +32,33 @@ namespace Avalanche { const word nextcode = 17717; -integer gd,gm; +integer gd, gm; untyped_file magic; /* of word;*/ word next; -array<1,16401,word> buffer; - -int main(int argc, const char* argv[]) -{pio_initialize(argc, argv); -; - gd=3; gm=0; initgraph(gd,gm,"c:\\bp\\bgi"); - assign(magic,"v:magic2.avd"); reset(magic,1); - blockread(magic,buffer,sizeof(buffer)); - close(magic); -/* while not eof(magic) do*/ - for( gd=1; gd <= 16401; gd ++) - {; -/* read(magic,next); - if next<>nextcode then*/ - if (buffer[gd]!=nextcode) - mem[0xa000*buffer[gd]]=255; - else - delay(1); - } -/* close(magic);*/ -return EXIT_SUCCESS; +array<1, 16401, word> buffer; + +int main(int argc, const char *argv[]) { + pio_initialize(argc, argv); + ; + gd = 3; + gm = 0; + initgraph(gd, gm, "c:\\bp\\bgi"); + assign(magic, "v:magic2.avd"); + reset(magic, 1); + blockread(magic, buffer, sizeof(buffer)); + close(magic); + /* while not eof(magic) do*/ + for (gd = 1; gd <= 16401; gd ++) { + ; + /* read(magic,next); + if next<>nextcode then*/ + if (buffer[gd] != nextcode) + mem[0xa000 * buffer[gd]] = 255; + else + delay(1); + } + /* close(magic);*/ + return EXIT_SUCCESS; } } // End of namespace Avalanche.
\ No newline at end of file |