delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/05/04/01:06:12

Message-ID: <3910AFD7.2B5434BE@home.com>
From: Robin Johnson <robbat2 AT home DOT com>
Organization: Orbit Computers
X-Mailer: Mozilla 4.7 [en] (Win98; U)
X-Accept-Language: en,af,es
MIME-Version: 1.0
Newsgroups: comp.os.msdos.djgpp
Subject: Re: error on putpixel?
References: <20000503144411 DOT 18540 DOT 00001011 AT ng-fo1 DOT aol DOT com>
Lines: 26
Date: Wed, 03 May 2000 23:05:48 GMT
NNTP-Posting-Host: 24.113.36.103
X-Complaints-To: abuse AT home DOT net
X-Trace: news1.rdc1.bc.home.com 957395148 24.113.36.103 (Wed, 03 May 2000 16:05:48 PDT)
NNTP-Posting-Date: Wed, 03 May 2000 16:05:48 PDT
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

#include <allegro.h>
#include <conio.h> //getch

int main(void)
{
  allegro_init();
  set_color_depth(8);
  if(!set_gfx_mode(GFX_AUTODETECT,640,480,0,0)) //nearly all systems support
this
    { cprintf("error entering gfx mode!"); //break on error
      return(-1);
     } 
  putpixel(screen,21,21,3);
  getch();
  return(0);
}


-- 
Robin Hugh Johnson
"Robbat2"
QTOD: "I used to be an idealist, but I got mugged by reality."
E-Mail     : robbat2 AT orbis-terrarum DOT net
ICQ#       : 30269588 or 41961639
Home Page  : http://www.orbis-terrarum.net
Time Zone  : Pacific Daylight (GMT - 8)

- Raw text -


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