Mail Archives: djgpp/1997/08/07/06:12:05

Date: Thu, 31 Jul 1997 09:48:50 +0000 ( )
From: "Gurunandan R. Bhat" <grbhat AT unigoa DOT ernet DOT in>
To: anfamily AT sprintmail DOT com
Cc: djgpp AT delorie DOT com
Subject: Re: Total newbie question
In-Reply-To: <>
Message-Id: <>
Mime-Version: 1.0

 On Mon, 04 Aug 1997 19:25:12 -0700, Ionicis <anfamily AT sprintmail DOT com>
> Ok, how do you even put a stinkin' white pixel on the screen with djgpp
> (using C) without any gfx libs? 

if you are in mode 13h and want to put a pixel in "colour" at (x,y) try 
this. i wouldn't know how to make it stink though. 
 #include <sys/farptr.h>
 #include <go32.h>
 _farpokeb(_dos_ds, 0xa0000 + y*320 + x, color);

- Raw text -

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