delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/12/23/15:48:16

From: "Valkir" <jfd50 AT videotron DOT ca>
Newsgroups: comp.os.msdos.djgpp
References: <Pine DOT SUN DOT 3 DOT 91 DOT 991223190932 DOT 8268H-100000 AT is>
Subject: Re: djgpp strangeness
Lines: 28
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.00.2314.1300
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300
Message-ID: <IPu84.140$oo4.6456@weber.videotron.net>
Date: Thu, 23 Dec 1999 14:35:52 -0500
NNTP-Posting-Host: 24.200.143.153
X-Complaints-To: abuse AT videotron DOT net
X-Trace: weber.videotron.net 945977704 24.200.143.153 (Thu, 23 Dec 1999 14:35:04 EST)
NNTP-Posting-Date: Thu, 23 Dec 1999 14:35:04 EST
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019