delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/12/13/15:10:46

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 <joepc AT writeme DOT com>
Subject: Re: Mode13h help...
Mime-Version: 1.0

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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019