X-Git-Url: http://4ch.mooo.com/gitweb/?a=blobdiff_plain;f=src%2Fpalettel.c;h=e7f2ace0fc3323edfe92fe0d46a260252e2f0a93;hb=5e3023322a0464a255292592e66bf3ea943a335b;hp=5ce5c809c2c6bf7efca575f76156541eb979c651;hpb=7cbfb3d1f53e33107205d1d8a5ed215898246504;p=16.git diff --git a/src/palettel.c b/src/palettel.c index 5ce5c809..e7f2ace0 100755 --- a/src/palettel.c +++ b/src/palettel.c @@ -1,5 +1,5 @@ /* Project 16 Source Code~ - * Copyright (C) 2012-2016 sparky4 & pngwen & andrius4669 & joncampbell123 + * Copyright (C) 2012-2017 sparky4 & pngwen & andrius4669 & joncampbell123 & yakui-lover * * This file is part of Project 16. * @@ -20,10 +20,9 @@ * */ -#include "src/lib/modex16.h" +#include "src/lib/16_vl.h" #include "src/lib/bakapee.h" -global_game_variables_t gvar; byte *pal; char *bakapee; word i; @@ -31,6 +30,7 @@ word i; void main(int argc, char *argv[]) { + static global_game_variables_t gvar; //page.width += 32; //page.height += 32; pal = modexNewPal(); @@ -43,12 +43,12 @@ main(int argc, char *argv[]) modexPalBlack(); modexLoadPalFile(bakapee, &pal); - modexPalUpdate1(pal); + modexPalUpdate(pal); modexFadeOn(1, pal); modexpdump(&gvar.video.page[0]); getch(); VGAmodeX(0, 0, &gvar); - modexPalUpdate1(pal); + modexPalUpdate(pal); /*for(i=0;i<768;i++) { printf("%02X ", pal[i]);