I have some problems using VBE/AF driver:
I'v load the driver, map all needed memory and initiate it.
Then i initiate video mode 640x480x8 with the following code:
int res = af_driver->SetVideoMode(0x4101,640,480,&bpp,1,NULL);
Mode seems to be initiated ok, but when i'm trying to fill it with random pixels using this code:
char *surface = af_driver->LinearMem;
for(int i = 0; i<(640*480); i++)
surface[i] = rand()%255;
i get screen filled on ~25% (like vertical screen size is larger 4 times than 480 pixels)
Also i can't get DrawLine function to work. I call it but don't see results.
Anybody can help?