From: gautam AT interlog DOT com (Gautam N. Lad) Newsgroups: comp.os.msdos.djgpp Subject: DJGPP Problem : Clearing screen in Mode 13H Date: Tue, 03 Jun 97 02:10:13 GMT Organization: InterLog Internet Services Message-ID: <5n24tk$ptp@news.interlog.com> NNTP-Posting-Host: ip203-209.cc.interlog.com Lines: 28 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk Hi, I've written a PCX viewer in Mode 13H, in TC++, and in that, I use memset() to clear the screen (eg. memset((BYTE *)Screen,64000,0);), and I also use memcpy() in another program (a game), for double buffering. So, now I want to port the program to DJGPP, and following the tutorial from the DJGPP Book Project on Graphics Programming, I converted my PutPixel() and Mode() (set's Video mode), so it won't cause all GPFs! However, memset() kept causing the GPFs. How do I clear the screen very fast, in C/DJGPP (No ASSEMBLY)? The tutorial says that something like dosmemput() is slow. Please help! Bye! **************************************************** * Gautam N. Lad * *--------------------------------------------------* * * * E-Mail : gautam AT interlog DOT com * * Website : http://www.interlog.com/~gautam * * * * OS/2, DOS/Windows, Graphics Gallery, Software, * * Links, Rayzor Editor/2, POV-Ray, TexturEyes, * * POV-PAK and lots lots lots more!!!!!!! * ****************************************************