Jump to content

  • Log In with Google      Sign In   
  • Create Account

VBE/AF coding problem


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
No replies to this topic

#1 FlyFire   Members   -  Reputation: 122

Like
Likes
Like

Posted 15 August 1999 - 09:47 AM

Hi
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?
Thanx,
FlyFire/CodeX
http://codexorg.webjump.com


Sponsor:



Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS