From: Shawn Hargreaves Newsgroups: comp.os.msdos.djgpp Subject: Re: [ALLEGRO] modex & test.exe bug ??? Date: Sun, 16 Feb 1997 11:23:56 +0000 Organization: None Distribution: world Message-ID: References: <01bc1a7a$8480d820$4d62e2c1 AT cclub DOT sorostm DOT ro> NNTP-Posting-Host: talula.demon.co.uk MIME-Version: 1.0 Lines: 32 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp >in test.exe from allegro when i select a modex video mode and >run the keyboard test it's exist to dos with page fault error .... >and this only in modex modes, in vga 13h 320x200 or svga >modes it runs correctly ... same happend to you guyz ??? > >i looked in the source and i think the problem is > blit (screen,screen, .... ) I was just about to say "no, it works fine for me", but then it occured to me to try under cwsdpmi as well as win95, and sure enough, Bang! This is most certainly a bug: thanks for pointing it out... btw. are you using the 2.2 beta, or did this happen with earlier releases as well? When posting bug reports, it helps if you say exactly which version you are using. >for(x=0;x for(y=0;y putpixel(x,y,(random() & 16)); > >it prints like nonsense ... Don't you mean putpixel(screen, x, y, (random() & 16))? If you really left out the screen pointer, I don't see how it would even compile. If that's just a typo, it looks correct to me: in what way is the nonsense you get different to what you expected? (random pixels do tend to look like nonsense :-) /* * Shawn Hargreaves - shawn AT talula DOT demon DOT co DOT uk - http://www.talula.demon.co.uk/ * Ghoti: 'gh' as in 'enough', 'o' as in 'women', and 'ti' as in 'nation'. */