cvs.gedasymbols.org/archives/browse.cgi   search  
Mail Archives: djgpp/1998/03/09/22:39:13

Newsgroups: comp.os.msdos.djgpp
From: Kdawghu AT hotmail DOT com (Kris Mills)
Subject: How to use MOVEDATA to do Double Buffering?
Lines: 22
Message-ID: <12YM.3619$Xz.3219943@firenze.visi.net>
Date: Mon, 09 Mar 1998 20:11:41 GMT
NNTP-Posting-Host: ppp-5-37.nn.visi.net
NNTP-Posting-Date: Mon, 09 Mar 1998 15:11:41 EST
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Well i have some graphics routes that i have written but i can't figure out 
how to show a double buffer. I am useing VESA 2.0 Linear addressing useing FAR 
PTR's. I thought all i had to do was setup another array for the double 
buffer. Then gets it's selectors value useing _my_ds() then uses movedata to 
copy this to either the screen or the video buffer i allready have setup.

int video_buffer2(width*height);

movedata(_my_ds(),(int)&video_buffer2,ADDR,video_buffer,(width*height));

also:i get an error when i run it ;it says undefined _my_ds() but i'm include 
the right headers and stuff.

I'm getting really confussed because ever time i compile it's cool but when i 
run it, it restarts my computer ever time i don't know what to do.

Please Any help will be whould really make my day.

kdawg AT hotmail DOT com
Kevin Fowlks

- Raw text -


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