Message-Id: <3.0.32.19971212234745.0069a9c4@195.53.80.2> Date: Sat, 13 Dec 1997 21:08:04 +0100 To: djgpp AT delorie DOT com From: Jose Luis Perandones Colino Subject: Re: Mode13h help... Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8bit Precedence: bulk At 19:03 11/12/97 +0000, John M. Aldrich wrote: >/*- Plot_Pixel_Fast ------------*/ > >void Plot_Pixel_Fast(int x, int y, char color) >{ > video_buffer[((y<<8) + (y<<6)) + x] = color; >} If you want a fast plot pixel use: video_buffer[(y*320)+x]=color And compile with optimization(-O,-O1 or -O2). Use gcc -S for see assembler code. -- Jose Luis Perandones Colino mailto:joepc AT writeme DOT com ICQ: 5209447 EmuWorks - http://www.geocities.com/SiliconValley/Bay/9494 La Baņeza - Leon - Spain