cvs.gedasymbols.org/archives/browse.cgi   search  
Mail Archives: djgpp/1997/02/14/20:23:11

From: gfoot AT mc31 DOT merton DOT ox DOT ac DOT uk (George Foot)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: [ALLEGRO] modex & test.exe bug ???
Date: 14 Feb 1997 22:03:02 GMT
Organization: Oxford University
Message-ID: <5e2nem$h7c@news.ox.ac.uk>
References: <01bc1a7a$8480d820$4d62e2c1 AT cclub DOT sorostm DOT ro>
NNTP-Posting-Host: mc31.merton.ox.ac.uk
Lines: 19
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

TBD (root AT cclub DOT sorostm DOT to) wrote:

: 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 ... 

Well, that's what random stuff is :) Try replacing the 16 with 0xff... that
might be what you were looking for.

-- 
George Foot <gfoot AT mc31 DOT merton DOT ox DOT ac DOT uk>
Merton College, Oxford.

- Raw text -


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