Mail Archives: djgpp/1998/10/22/11:01:06
Message-ID: | <006701bdfdd4$f7f0f620$c5223182@marst96.m.resnet.pitt.edu>
|
From: | "mark reed" <marst96+@pitt.edu>
|
To: | <djgpp AT delorie DOT com>
|
Subject: | Re: Aaargh! My mouse function is still not working!!!
|
Date: | Thu, 22 Oct 1998 11:59:36 -0400
|
MIME-Version: | 1.0
|
X-Priority: | 3
|
X-MSMail-Priority: | Normal
|
X-Mailer: | Microsoft Outlook Express 4.72.3110.1
|
X-MimeOLE: | Produced By Microsoft MimeOLE V4.72.3110.3
|
Reply-To: | djgpp AT delorie DOT com
|
your plotting the address of x and y not x and y Try getting rid of the &'s
>void Plot_Pixel(int x, int y, int colour)
>{
>_farpokeb(_dos_ds, 0xa0000 + ((y<<8) + (y<<6))+ x, colour);
>}
> if(mouse_button(MOUSE_LB))
> {
>>>> Plot_Pixel((int)&x, (int)&y, colour);
> }
- Raw text -