cvs.gedasymbols.org/archives/browse.cgi   search  
Mail Archives: djgpp/1997/03/19/10:39:02

From: Niklas <niklas AT finebody DOT com>
Newsgroups: comp.os.msdos.djgpp,comp.graphics.algorithms
Subject: VESA 2.0 and getch() bug?
Date: Wed, 19 Mar 1997 10:57:26 +0100
Organization: Solace Computer Society
Lines: 28
Message-ID: <332FB886.3A9F@finebody.com>
Reply-To: niklas AT finebody DOT com
NNTP-Posting-Host: sl08.modempool.kth.se
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

How can this work:
void VESAdriver::flipPage(byte* poff) {
  byte* video = (byte*)ADDR;
  __djgpp_nearptr_enable();
  video -= __djgpp_base_address;
  memcpy(video,poff,320*3*240);
  __djgpp_nearptr_disable();
  getch();
}

and this don't?
void VESAdriver::flipPage(byte* poff) {
  byte* video = (byte*)ADDR;
  __djgpp_nearptr_enable();
  video -= __djgpp_base_address;
  memcpy(video,poff,320*3*240);
  __djgpp_nearptr_disable();
//  getch();
}

I'm using djgpp2, sdd53a, fastvid, Pentiumpro, 
and the linear frame buffer.
Any help is wonderful :)

Niklas
------------------------------
e-mail: d95-nlu AT nada DOT kth DOT se
------------------------------

- Raw text -


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