delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/08/16/01:33:05

From: lonniem AT cs DOT utexas DOT edu (Lonnie McCullough)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Problem with linear video memory
Date: Sat, 16 Aug 1997 00:49:01 GMT
Message-ID: <33f4f869.1297602@news.nol.net>
References: <5svlb3$auf AT news DOT xgw DOT fi>
NNTP-Posting-Host: ip38-19.nol.net
Lines: 18
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

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 -


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