Mail Archives: djgpp/1997/12/13/15:10:46
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 -