Mail Archives: djgpp/1997/07/03/04:47:29
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 -