Last change
on this file since 88 was
56,
checked in by Sam Hocevar, 14 years ago
|
- Add licensing terms to most C / C++ files (Ref #5).
|
File size:
841 bytes
|
Line | |
---|
1 | /* |
---|
2 | * Abuse - dark 2D side-scrolling platform game |
---|
3 | * Copyright (c) 1995 Crack dot Com |
---|
4 | * |
---|
5 | * This software was released into the Public Domain. As with most public |
---|
6 | * domain software, no warranty is made or implied by Crack dot Com or |
---|
7 | * Jonathan Clark. |
---|
8 | */ |
---|
9 | |
---|
10 | #include "config.h" |
---|
11 | |
---|
12 | #include <stdlib.h> |
---|
13 | |
---|
14 | #include "pcxread.hpp" |
---|
15 | #include "palette.hpp" |
---|
16 | #include "image.hpp" |
---|
17 | |
---|
18 | main(int argc, char **argv) |
---|
19 | { |
---|
20 | image_init(); |
---|
21 | |
---|
22 | if (argc<3) |
---|
23 | { |
---|
24 | printf("Usage : %s xsize ysize filename [filename]\n",argv[0]); |
---|
25 | exit(0); |
---|
26 | } |
---|
27 | |
---|
28 | while (argc>3) |
---|
29 | { |
---|
30 | argc--; |
---|
31 | |
---|
32 | palette *pal; |
---|
33 | image *im=read_PCX(argv[argc],pal); |
---|
34 | |
---|
35 | im->resize(atoi(argv[1]),atoi(argv[2])); |
---|
36 | write_PCX(im,pal,argv[argc]); |
---|
37 | delete pal; |
---|
38 | printf(" %s\n",argv[argc]); |
---|
39 | |
---|
40 | clear_errors(); |
---|
41 | } |
---|
42 | image_uninit(); |
---|
43 | |
---|
44 | } |
---|
45 | |
---|
Note: See
TracBrowser
for help on using the repository browser.