From: sparky4 Date: Tue, 13 Oct 2015 15:17:46 +0000 (-0500) Subject: wwww X-Git-Url: http://4ch.mooo.com/gitweb/?a=commitdiff_plain;h=4c1ddcc06d415cc93d411f7c27d787558c57c6c0;p=16.git wwww --- diff --git a/makefile b/makefile index 28830ce3..49326f4f 100755 --- a/makefile +++ b/makefile @@ -72,7 +72,7 @@ DOSLIBOBJ = adlib.$(OBJ) 8254.$(OBJ) 8259.$(OBJ) dos.$(OBJ) cpu.$(OBJ) #3812intf.$(OBJ) GFXLIBOBJS = modex16.$(OBJ) bitmap.$(OBJ) planar.$(OBJ) 16text.$(OBJ) bakapee.$(OBJ) scroll16.$(OBJ) -TESTEXEC = exmmtest.exe test.exe pcxtest.exe pcxtest2.exe test2.exe palettec.exe maptest.exe fmemtest.exe fonttest.exe fontgfx.exe scroll.exe vgmtest.exe inputest.exe +TESTEXEC = exmmtest.exe test.exe pcxtest.exe pcxtest2.exe test2.exe palettec.exe maptest.exe fmemtest.exe fonttest.exe fontgfx.exe scroll.exe vgmtest.exe inputest.exe palettel.exe # tsthimem.exe #testemm.exe testemm0.exe fonttes0.exe miditest.exe sega.exe sountest.exe EXEC = 16.exe bakapi.exe $(TESTEXEC) tesuto.exe @@ -144,6 +144,9 @@ pcxtest.exe: pcxtest.$(OBJ) gfx.lib palettec.exe: palettec.$(OBJ) $(16LIBOBJS) gfx.lib wcl $(FLAGS) palettec.$(OBJ) $(16LIBOBJS) gfx.lib -fm=palettec.map +palettel.exe: palettel.$(OBJ) $(16LIBOBJS) gfx.lib + wcl $(FLAGS) palettel.$(OBJ) $(16LIBOBJS) gfx.lib -fm=palettel.map + pcxtest2.exe: pcxtest2.$(OBJ) gfx.lib wcl $(FLAGS) pcxtest2.$(OBJ) gfx.lib -fm=pcxtest2.map @@ -194,6 +197,9 @@ pcxtest2.$(OBJ): $(SRC)pcxtest2.c $(SRCLIB)modex16.h palettec.$(OBJ): $(SRC)palettec.c wcl $(FLAGS) -c $(SRC)palettec.c +palettel.$(OBJ): $(SRC)palettel.c + wcl $(FLAGS) -c $(SRC)palettel.c + maptest.$(OBJ): $(SRC)maptest.c $(SRCLIB)modex16.h wcl $(FLAGS) -c $(SRC)maptest.c diff --git a/src/palettel.c b/src/palettel.c new file mode 100755 index 00000000..1d9f288d --- /dev/null +++ b/src/palettel.c @@ -0,0 +1,42 @@ +/* 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 "src/lib/modex16.h" + +void +main(int argc, char *argv[]) +{ + byte *pal; + char *bakapee; + + modexEnter(); + + pal = modexNewPal(); + bakapee = malloc(64); +// modexPalSave(pal); + modexPalBlack(); + + modexLoadPalFile("data/default.pal", &pal); + + + modexLeave(); +}