Mail Archives: djgpp/1997/08/16/01:33:05
On 14 Aug 1997 19:12:35 GMT, Sampo Niskanen <sampo AT lizard DOT compart DOT fi>
wrote:
>How can I make a selector to access the memory of a linear framebuffer
>(VESA VBE 2.0, __dpmi_set_selector doesn't work) and how can I write in
>it? When I try to write to it (with a selector which can access all 4GB
>of memory), it always segfaults. Is there something else to do than
>just to set a (vesa) videomode with bit 14 set and to check the position
>of the framebuffer to get a linear framebuffer?
In my graphics library there is a function that sets up a descriptor
to "point" at video memory. If you go to
http://www.cs.utexas.edu/users/lonniem/src.zip and get it look in
src/surface.c in the routine screenallocate () to get the answers.
Lonnie McCullough
lonniem AT cs DOT utexas DOT edu
- Raw text -