Mail Archives: djgpp/1999/12/23/15:48:16
Eli Zaretskii <eliz AT is DOT elta DOT co DOT il> wrote in message
news:Pine DOT SUN DOT 3 DOT 91 DOT 991223190932 DOT 8268H-100000 AT is...
>
> On Thu, 23 Dec 1999, Valkir wrote:
>
> > Video=Vesa.InitVesa();
> >
> > //////cDesktop Desktop;
> > for(x=0;x<800;x++)
> > for(y=0;y<2400;y++)
> > *(Buffer+x+y*800)=x;
> > memcpy(Video,Buffer,1920000);
>
> What kind of pointer/address does Vesa.InitVesa() return?
>
> If it is a real-mode pointer, you cannot use memcpy with it; see section
> 18.2 of the FAQ for the details.
Vesa.InitVesa() return the linear frame buffer address for the vesa card.
Maybe that's my error, but sometime it give it right(always on same puter)
and sometime when I add other thin it goes all wrong.
One thing that is strange is if I declare Buffer in my main, it work, if I
declare as global, and I don't use it any other place then my main, it
doesn't work.
- Raw text -