if(argv[1]) bakapee = argv[1];\r
else bakapee = "data/default.pal";\r
\r
- VGAmodeX(1, &gvar);\r
+ VGAmodeX(1, 1, &gvar);\r
\r
pal = modexNewPal();\r
modexPalSave(pal);\r
\r
modexSavePalFile(bakapee, pal);\r
\r
- VGAmodeX(0, &gvar);\r
+ VGAmodeX(0, 1, &gvar);\r
\r
}\r
if(argv[1]) bakapee = argv[1];\r
else bakapee = "data/default.pal";\r
// modexPalSave(pal);\r
- VGAmodeX(1, &gvar);\r
+ VGAmodeX(1, 1, &gvar);\r
gvar.video.page[0] = modexDefaultPage(&gvar.video.page[0]);\r
modexPalBlack();\r
\r
modexFadeOn(1, pal);\r
pdump(&gvar.video.page[0]);\r
getch();\r
- modexLeave();//VGAmodeX(0, &gvar);\r
+ VGAmodeX(0, 0, &gvar);\r
modexPalUpdate1(pal);\r
/*for(i=0;i<768;i++)\r
{\r
bmp = bitmapLoadPcx("data/koishi^^.pcx");\r
// bmp = bitmapLoadPcx("16/PCX_LIB/chikyuu.pcx");\r
p = planar_buf_from_bitmap(&bmp);\r
- VGAmodeX(1, &gvar);\r
+ VGAmodeX(1, 1, &gvar);\r
gvar.video.page[0]=modexDefaultPage(&gvar.video.page[0]);\r
\r
/* fix up the palette and everything */\r
{\r
//DrawPBuf(&gvar.video.page[0], 0, 0, p, 0);\r
}\r
- VGAmodeX(0, &gvar);\r
+ VGAmodeX(0, 1, &gvar);\r
/*printf("\nmain=%Fp\n\n", &i);\r
printf("bmp.data=%Fp\n", bmp.data);\r
printf("*bmp.data=%Fp\n", *(bmp.data));\r
bmp = bitmapLoadPcx("data/koishi^^.pcx");\r
// bmp = bitmapLoadPcx("16/PCX_LIB/chikyuu.pcx");\r
p = planar_buf_from_bitmap(&bmp);\r
- VGAmodeX(1, &gvar);\r
+ VGAmodeX(1, 1, &gvar);\r
gvar.video.page[0]=modexDefaultPage(&gvar.video.page[0]);\r
gvar.video.page[0].sw+=32;\r
gvar.video.page[0].sh+=32;\r
{\r
//DrawPBuf(&gvar.video.page[0], 0, 0, p, 0);\r
}\r
- VGAmodeX(0, &gvar);\r
+ VGAmodeX(0, 1, &gvar);\r
/*printf("\nmain=%Fp\n\n", &i);\r
printf("bmp.data=%Fp\n", bmp.data);\r
printf("*bmp.data=%Fp\n", *(bmp.data));\r
//getch();\r
\r
textInit();\r
- VGAmodeX(baka, &gvar);\r
+ VGAmodeX(baka, 1, &gvar);\r
gvar.video.page[0]=modexDefaultPage(&gvar.video.page[0]);\r
\r
//fix up the palette and everything\r
while(!kbhit())\r
{\r
}\r
- VGAmodeX(0, &gvar);\r
+ VGAmodeX(0, 1, &gvar);\r
\r
//print out the contents of each plane\r
for(plane=0; plane < 4; plane++) {\r
#endif
textInit();
- VGAmodeX(bakapee, &gvar);
+ VGAmodeX(bakapee, 1, &gvar);
// printf("%dx%d\n", gvar.video.page[0].sw, gvar.video.page[0].sh);
#ifdef FADE
modexPalBlack(); //reset the palette~
//TSR
if(IN_KeyDown(87)) //f11
{
- VGAmodeX(0, &gvar);
+ VGAmodeX(0, 0, &gvar);
IN_Shutdown();
__asm
{
modexSavePalFile("data/g.pal", gpal);
modexFadeOff(4, gpal);
#endif
- VGAmodeX(0, &gvar);
+ VGAmodeX(0, 1, &gvar);
#endif
IN_Shutdown();
printf("Project 16 scroll.exe. This is just a test file!\n");
modexFadeOff(1, pal);\r
modexPalBlack();\r
\r
- VGAmodeX(bakapee, &gvar);\r
+ VGAmodeX(bakapee, 1, &gvar);\r
modexPalBlack();\r
\r
IN_Startup();\r
/* fade back to text mode */\r
modexFadeOff(1, pal2);\r
modexPalBlack();\r
- VGAmodeX(0, &gvar);\r
+ VGAmodeX(0, 1, &gvar);\r
IN_Shutdown();\r
printf("Project 16 test.exe. This is just a test file!\n");\r
printf("version %s\n", VERSION);\r