X-Git-Url: http://4ch.mooo.com/gitweb/?a=blobdiff_plain;ds=inline;f=src%2Ftest.c;h=a34ed407862a65798f77177bd8c112e2ad6fe706;hb=d89b4d35446e64b0b8fd7c8fdcff32bcd0845e32;hp=fd2ec3f9f1dc4b7481f86ddba0925032beb148b7;hpb=f66b2c6a16e6f6c2c9c07a39d1855b5ea178fead;p=16.git
diff --git a/src/test.c b/src/test.c
index fd2ec3f9..a34ed407 100644
--- a/src/test.c
+++ b/src/test.c
@@ -1,7 +1,29 @@
-#include "src\lib\modex16.h"
+/* Project 16 Source Code~
+ * Copyright (C) 2012-2015 sparky4 & pngwen & andrius4669
+ *
+ * This file is part of Project 16.
+ *
+ * Project 16 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 3 of the License, or
+ * (at your option) any later version.
+ *
+ * Project 16 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, see , or
+ * write to the Free Software Foundation, Inc., 51 Franklin Street,
+ * Fifth Floor, Boston, MA 02110-1301 USA.
+ *
+ */
+
#include
+#include "src/lib/modex16.h"
-word far* clock= (word far*) 0x046C; /* 18.2hz clock */
+word far* clockw= (word far*) 0x046C; /* 18.2hz clock */
void main() {
int i, j;
@@ -10,7 +32,7 @@ void main() {
byte *pal, *pal2=NULL;
/* load our palette */
- modexLoadPalFile("gfx.pal", &pal2);
+ modexLoadPalFile("data/default.pal", &pal2);
/* save the palette */
pal = modexNewPal();
@@ -39,7 +61,7 @@ void main() {
modexFadeOn(1, pal2);
- start = *clock;
+ start = *clockw;
for(i=0; i<5; i++) {
/* go right */
for(j=0; j<32; j++) {
@@ -64,7 +86,7 @@ void main() {
}
}
- end = *clock;
+ end = *clockw;
/* fade back to text mode */
modexFadeOff(1, pal2);