www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/04/02/07:59:51

Message-Id: <199904021259.HAA32517@delorie.com>
Comments: Authenticated sender is <mert0407 AT sable DOT ox DOT ac DOT uk>
From: "George Foot" <george DOT foot AT merton DOT ox DOT ac DOT uk>
To: jayjohnson AT rocketmail DOT com (Jay Johnson)
Date: Fri, 2 Apr 1999 03:10:54 +0000
MIME-Version: 1.0
Subject: Re: Allegro getpixel problem
CC: djgpp AT delorie DOT com
X-mailer: Pegasus Mail for Win32 (v2.42a)
Reply-To: djgpp AT delorie DOT com

On  2 Apr 99 at 0:32, Jay Johnson wrote:

> BITMAP buffer;
> int temp;
> char textbuf[50];
> ...
> 
> putpixel(buffer, 0, 0, 6);

You should get compiler errors -- you just passed a BITMAP
instead of a BITMAP *.  This error is in the definition of
`buffer'; everything you do with Allegro is through pointers
to bitmaps, not bitmaps themselves.

> It seems like I should be getting a 6 out of the getpixel, 
> but I only get 0.

Can you post a complete (but short) program that other people
can try out?

-- 
George

- Raw text -


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