Mail Archives: djgpp/2001/06/09/17:45:04.1

From: "Andrew R. Gillett" <arg AT whangomatic DOT freeserve DOT co DOT uk>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: [Allegro] Small Question
Date: Sat, 9 Jun 2001 22:25:34 +0100
Lines: 17
Message-ID: <>
References: <ssvU6.978$ac3 DOT 3341 AT newsfeed DOT slurp DOT net>
X-Trace: 992121900 15516 (9 Jun 2001 21:25:00 GMT)
NNTP-Posting-Date: 9 Jun 2001 21:25:00 GMT
X-Complaints-To: abuse AT theplanet DOT net
X-Newsreader: MicroPlanet Gravity v2.30
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

In comp.os.msdos.djgpp, Brent Ritchie wrote:
>     I Was just wondering I want to make a dot on the screen but it dosent
> want to show up here is my code:

Your problem is that you are drawing the bitmap to b, but b is a memory 
bitmap, it's separate from the screen. If you want to draw to the screen, 
specify screen in putpixel as the bitmap instead of b - or copy the 
contents of b to the screen using blit. (Most graphical programs write 
their graphics to a memory bitmap then copy that bitmap to the actual 
screen, so that the entire screen is updated simultaneously)

Andrew Gillett     ICQ: See homepage

US videogame release dates at:

- Raw text -

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