From: "François Poirier" Newsgroups: comp.os.msdos.djgpp Subject: Double buffering Date: Tue, 29 Dec 1998 16:07:51 -0500 Organization: AEI Internet Lines: 13 Message-ID: <368944A7.21F3EDCD@aei.ca> NNTP-Posting-Host: ppp-109-171.mtl.aei.ca Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Mailer: Mozilla 4.05 [en] (Win95; I) To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com How can I use double buffering when the __djgpp_conventional_base is changing sometime when using a linear frame buffer code like the one below. BTW I use VESA 2.0 mode 0x101 with the near ptr enable (and I want to keep it that way). I know how to create a selector but selector seem to use far ptr and I want to keep the near ptr for speed. (It is possible?). unsigned char *video; video = (unsigned char *)linear_address; video[y * Max_X + x + __djgpp_conventional_base] = couleur;