Mail Archives: djgpp/1999/12/22/11:49:26
From: | "Valkir" <jfd50 AT videotron DOT ca>
|
Newsgroups: | comp.os.msdos.djgpp
|
References: | <tmU74.34$Fc6 DOT 1542 AT weber DOT videotron DOT net>
|
Subject: | Re: djgpp strangeness
|
Lines: | 46
|
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: | <14684.897$Qz2.16629@wagner.videotron.net>
|
Date: | Wed, 22 Dec 1999 10:26:34 -0500
|
NNTP-Posting-Host: | 24.200.143.153
|
X-Complaints-To: | abuse AT videotron DOT net
|
X-Trace: | wagner.videotron.net 945876349 24.200.143.153 (Wed, 22 Dec 1999 10:25:49 EST)
|
NNTP-Posting-Date: | Wed, 22 Dec 1999 10:25:49 EST
|
To: | djgpp AT delorie DOT com
|
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp
|
Reply-To: | djgpp AT delorie DOT com
|
Here's the code:
int main()
{long x,y;
uchar *Video;
Buffer=(uchar *)malloc(1920000);
cVesa *Vesa=(cVesa *)malloc(sizeof(cVesa));
Video=Vesa->InitVesa();
//////// cDesktop *Deskt=(cDesktop *)malloc(sizeof(cDesktop));
for(x=0;x<800;x++)
for(y=0;y<2400;y++)
*(Buffer+y*800+x)=x;
memcpy(Video,Buffer,1920000);
getkey();
Vesa->Close();
return(0);
}
if I remove the command with lots of comments, it work, but if I enable it,
it doesn't enable my vesa mode but a 13h mode even if I don't use it
anywhere!
here's my constructor of cDesktop
cDesktop::cDesktop(){
Menu.ChangeForm(0,0,799,19);
Icone.ChangeForm(0,20,799,39);
Opt.ChangeForm(0,40,99,599);
Image.ChangeForm(100,40,699,599);
Obj.ChangeForm(700,40,799,599);
}
void cItem::ChangeForm(uint xD,uint yD, uint xF, uint yF){
xDebut=xD; /// Variable in my public class
yDebut=yD;
xFin=xF;
yFin=yF;
}
My constructor of cItem as nothing in it.
This is only 1 example, but it happend often.
thanks for help, Val
- Raw text -