X-Git-Url: http://4ch.mooo.com/gitweb/?a=blobdiff_plain;f=src%2Fpalettel.c;h=3bf7bb570f7ab0a2b517bb0411a78b5f8fe4bbd0;hb=6021fc3f27b895d382fbd30488ead35657e39196;hp=6b6840a707a8d92e1d3142d11b25b35ad80419e0;hpb=60484e959995accd95933e7f119fafe3a42897c5;p=16.git diff --git a/src/palettel.c b/src/palettel.c index 6b6840a7..3bf7bb57 100755 --- a/src/palettel.c +++ b/src/palettel.c @@ -1,5 +1,5 @@ /* Project 16 Source Code~ - * Copyright (C) 2012-2017 sparky4 & pngwen & andrius4669 & joncampbell123 & yakui-lover + * Copyright (C) 2012-2018 sparky4 & pngwen & andrius4669 & joncampbell123 & yakui-lover * * This file is part of Project 16. * @@ -20,15 +20,16 @@ * */ #include "src/lib/16_vl.h" -void main(int argc, char *argv[]) { +void main(int argc, char *argv[]) +{ static global_game_variables_t gvar; word i; char bakapee[64] = "data/16.pal"; if(argv[1]) strcpy(bakapee, argv[1]);// modexPalSave(&gvar.video.dpal); modexFadeOff(4, &gvar.video.dpal); modexPalBlack(); TL_VidInit(&gvar); VGAmodeX(1, 0, &gvar); - VL_LoadPalFile(bakapee, &gvar.video.palette); //modexLoadPalFile(bakapee, &(gvar.video.palette)); - gvar.video.page[0] = modexDefaultPage(&gvar.video.page[0]);// modexFadeOn(4, &gvar.video.palette); + VL_LoadPalFile(bakapee, &gvar.video.palette, &gvar); //modexLoadPalFile(bakapee, &(gvar.video.palette)); + PALPROGRAMSNEWPAGE VL_ShowPage(&gvar.video.page[0], 1, 0); - modexpdump(&gvar.video.page[0]); + modexpdump(0, &gvar); while(!kbhit()){ /*VL_modexPalScramble(&gvar.video.palette);*/ } modexPalSave(&gvar.video.palette); VGAmodeX(0, 0, &gvar);