Message-Id: <199904021259.HAA32517@delorie.com> Comments: Authenticated sender is From: "George Foot" To: jayjohnson AT rocketmail DOT com (Jay Johnson) Date: Fri, 2 Apr 1999 03:10:54 +0000 MIME-Version: 1.0 Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7BIT 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