From: caustik (caustik@caustik.com)
Date: Wed 09 Aug 2000 - 05:26:41 IDT
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); }
This archive was generated by hypermail 2.1.4 : Wed 21 Jan 2004 - 22:10:23 IST