Mail Archives: djgpp/1997/09/10/21:33:12
Brad Fidler writes:
>I thought I had at one time saw a variable
>or struct field somewhere that gave the address of
>the linear frame buffer (assuming it is available)
>in Allegro.
After you set up the graphics mode, the selector is in screen->seg, and
screen->line[0] is the offset to the first pixel of video memory. If you
are happy only supporting LFB hardware you can do everything with
offsets from that address, but if you want your code to work with banked
modes you must call the bmp_write_line() function to obtain the address
of each scanline before you access it.
--
Shawn Hargreaves - shawn AT talula DOT demon DOT co DOT uk - http://www.talula.demon.co.uk/
Beauty is a French phonetic corruption of a short cloth neck ornament.
- Raw text -