Mail Archives: djgpp/1997/02/15/06:32:26
From: | AGSerm AT netwizards DOT net (Ansel Sermersheim)
|
Newsgroups: | comp.os.msdos.djgpp
|
Subject: | Re: [ALLEGRO] modex & test.exe bug ???
|
Date: | Sat, 15 Feb 1997 00:24:28 -0800
|
Organization: | NetWizards, Inc.
|
Lines: | 16
|
Message-ID: | <MPG.d6eb53c8c78fe64989692@news.netwizards.net>
|
References: | <01bc1a7a$8480d820$4d62e2c1 AT cclub DOT sorostm DOT ro>
|
NNTP-Posting-Host: | dial36.netwiz.net
|
To: | djgpp AT delorie DOT com
|
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp
|
In article <01bc1a7a$8480d820$4d62e2c1 AT cclub DOT sorostm DOT ro>,
root AT cclub DOT sorostm DOT to says...
[snip]
> okay .... another problem ... how do i put random pixels
> in modex modes all over the screen, if i use
>
> int x,y;
>
> for(x=0;x<SCREEN_W,x++)
> for(y=0;y<SCREEN_H,y++)
> putpixel(x,y,(random() & 16));
>
> it prints like nonsense ...
Umm, don't you mean:
putpixel(screen, x, y, (random() & 16));
- Raw text -