Why doesnt this work..? I desperately need a linear blit to a modeX[320x240x256]...
If you have ANY example source that uses vga_copytoplanar256, it would be greatly
appreciated..thanks
#include <malloc.h>
#include <stdio.h>
#include <vga.h>
unsigned char *pixels = (unsigned char *)malloc(320*240);
int main()
{
vga_init();
vga_setmode(G320x240x256);
vga_setmodeX();
for(int ind=0;ind<256;ind++)
vga_setpalette(ind,ind,0,0);
for(int v=0;v<320*240;v++)
pixels[v]=0x88;
vga_copytoplanar256(pixels,320,0,320,320,40);
vga_setpage(0);
vga_getch();
vga_setmode(TEXT);
exit(0);
}