www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/07/03/04:47:29

From: jmartin AT obed DOT cs DOT ualberta DOT ca (Jon Martin)
Newsgroups: comp.os.msdos.djgpp
Subject: How to use movedata() with linear frame buffer?
Date: 3 Jul 1997 04:54:12 GMT
Organization: U of Eh?
Lines: 14
Message-ID: <5pfb9k$om2$1@pulp.ucs.ualberta.ca>
Reply-To: jmartin AT obed DOT cs DOT ualberta DOT ca
NNTP-Posting-Host: obed.cs.ualberta.ca
Originator: jmartin AT obed-le0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

     Okay, I am learning to program with VESA 2.0.  I have got into the
correct mode, I have a selector for the LFB, and I can draw to it with the
_far* functions (ie. _farpokeb(video_selector, y * 640 + colour, colour); this
would draw a vertical line for each colour in the palette).  However, I want
to use a double buffer to reduce flicker.  If I have an array in memory for my
buffer called virtscreen[], how do I move that to the LFB?  I tried
movedata(_my_ds(), (unsigned) virtscreen, video_selector, 0,
sizeof(virtscreen)); but it did not work (locked up, to be precise).  So how
should I be doing it?
-- 
Serve Gonk.
Jon Martin  jmartin AT obed DOT cs DOT ualberta DOT ca  <-- finger for more info
http://elycion.geology.ualberta.ca/~jon/
Department of Computing Science at University of Alberta.

- Raw text -


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