|
||
|
GP Mailing List
ATXGPSIG List
|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: Graphics Problems
--- Sponsor's Message -------------------------------------- Wanna Throw That PC Out the Window? Not yet. First, check our technology forum for help. http://click.topica.com/caaaa4ObUrGczbU68iFa/rebootmypc ------------------------------------------------------------ Hi Rob! change this part of your program if ( kbhit() ) return; to this: getch(); I think this code is beter and simpler. --- Rob Quill <rjquill@aol.com> wrote: > --- Sponsor's Message > -------------------------------------- > Who Are the Top Dogs? > Find out about the best newsletters and discussions! > http://click.topica.com/caaaa4qbUrGczbVu3Rva/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> > > > > ATTACHMENT part 2 application/zip name=pixel.ZIP __________________________________________________ Do You Yahoo!? Yahoo! Auctions - buy the things you want at great prices http://auctions.yahoo.com/ ------------------------------------------------------------ //// 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> ==^================================================================ 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 ==^================================================================
|
|