http://GameProgrammer.Com

Programming

GP Mailing List
     Thread Index
     Date Index

ATXGPSIG List
     Thread Index
     Date Index

Google
>

Home

Wise2Food



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Graphics Problems



============================================================
"Before myTopica, I was buried in an avalanche of email.
Now, thanks to this free solution, I am on top of my inbox."
Get rescued at
http://click.topica.com/caaabBBbUrGczbU68iFa/register
============================================================

hi rob


the problem is if statement doesnt wait.

so the correct code will be



while(!kbhit());





instead of if(kbhit()) return;


bye & happy programming

chetan


>From: Rob Quill <rjquill@aol.com>
>Reply-To: gameprogrammer@topica.com
>To: gameprogrammer@topica.com
>Subject: Graphics Problems
>Date: Fri, 27 Apr 2001 16:59:11 EDT
>
>--- Sponsor's Message --------------------------------------
>Who Are the Top Dogs?
>Find out about the best newsletters and discussions!
>http://click.topica.com/caaaa4qbUrGczbVsx4ga/TopDogs
>------------------------------------------------------------
>
>Hi all,
>
>Hope you can help with this problem, the code for some VGA stuff I was
>experimenting with looks like this:
>
>void main()
>{
>   int x,y,color;
>   word i;
>
>   set_mode(VGA_256_COLOR_MODE);
>
>   for(i=0;i<320;i++)
>   {
>      for(x=0;x<320;x++)
>      {
>         y=199;
>         color=3;
>         plot_pixel_slow(x,y,color);
>      }
>   }
>if(kbhit())
>return;
>}
>
>The problem is with the kbhit() function at the end. The program seems to
>time out and quit regardless if a key is pressed or not. I have include the
>.exe file and the souce code file - ignre the comments because most of them 
>r
>now wrong because i have changed the file and i did not write them in the
>first place.
>
>Please could someone have a fiddle with the file and see if thhey can get 
>it
>too work.
>
>Thanks,
>Rob.
>
>------------------------------------------------------------
>//// Totally FREE software.  Just pay shipping! \\\\
>|| Click here --->> http://www.free-cd-software.com ||
><a href="http://www.free-cd-software.com">AOL Link</a>
>
><< pixel.ZIP >>

_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.

==^================================================================
EASY UNSUBSCRIBE click here: http://topica.com/u/?bUrGcz.bU68iF
Or send an email To: gameprogrammer-unsubscribe@topica.com
This email was sent to: list@pendleton.com

T O P I C A  -- Learn More. Surf Less.
Newsletters, Tips and Discussions on Topics You Choose.
http://www.topica.com/partner/tag01
==^================================================================