Mail Archives: djgpp/1999/02/25/17:29:03
V01D wrote:
>
> I got super frusterated with this ... i heres my simple line that works
> for everyone else but not me ...
>
> unsigned char* vidmem;
>
> vidmem=(unsigned char*) (vbeinfo.physbaseptr+__djgpp_conventional_base);
>
> vbeinfo is a structure with all the vbe info .. previously retrived, i
> am sure of the correct data because i can do a get info command and
> retrive all the right values from it ..
>
> whenever i try doing vidmem[x+y*xlen] = color; it crashes on me error
> code 255 ..
> im not sure what im doing wrong anymore .. iv looked at other code that
> iv written eirlier, and i cant see any differences :( iv looked at other
> peoples code, and still no differences ... i am loading
> __djgpp_nearptr_enable(); and ending with __djgpp_nearptr_disable(); ...
You do check that this function succeeds, right?
--
Nate Eldredge
nate AT cartsys DOT com
- Raw text -