www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/05/03/16:44:31

From: "Paul Vanukoff" <vanukoff AT primenet DOT com>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: error on putpixel?
Date: Wed, 3 May 2000 14:02:06 -0700
Organization: Frontier GlobalCenter Inc.
Lines: 30
Message-ID: <8eq44n$lg3$1@nnrp03.primenet.com>
References: <20000503144411 DOT 18540 DOT 00001011 AT ng-fo1 DOT aol DOT com>
NNTP-Posting-Host: unknown-206-phx.globalcrossing.com
X-Complaints-To: abuse AT globalcenter DOT net
X-Posted-By: @206.165.0.206 (vanukoff)
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.00.2919.6600
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6600
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

"Buffalo276" <buffalo276 AT aol DOT com> wrote in message
news:20000503144411 DOT 18540 DOT 00001011 AT ng-fo1 DOT aol DOT com...

> int main ()
> {
> BITMAP bmp = screen;
> allegro_init;
> set_gfx_mode(GFX_AUTODETECT,1024,768,0,0);
> set_color_depth(8);
> putpixel(bmp,21,21,3);
> }

Try this:

int main(void)
{
  allegro_init();
  set_color_depth(8);
  set_gfx_mode(GFX_AUTODETECT,1024,768,0,0);
  putpixel(screen,21,21,3);
  return(0);
}

--
Paul Vanukoff
vanukoff @ primenet.com




- Raw text -


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