Mail Archives: djgpp/1996/12/29/00:27:31
>I know how to use graphics in Borland: initgraph(.......
>bgi-graphics don=B4t work whit djgpp for me so how do you do it?
It's Borlands own(and slow and useless) feature. If you want do
something "real", forget it.
The better way to do that is:
Initialize graphicsmode (13h) like this:
#include<conio.h>
textmode(0x0013);
Then draw pixels in this way:
#include<go32.h>
#include<sys/farptr.h>
_farpokeb(_dos_ds, 0xA0000+y*320+x, color);
x and y are coordinates, color is color between 1 and 256
And back to textmode(3h):
textmode(0x03);
>The question might seem a bit elementary but I=B4m exreamly new=20
>whit this.=20
Well, there is a finnish saying "Kukaan ei ole seppä syntyessään."
It's something like "No one is pro when born", but it sounds better in
finnish.
Aleksi Kallio
- Raw text -