delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2003/03/06/01:46:18

From: "Joel_S" <jbs30000 DOT news DOT invalid AT web2news DOT net>
Newsgroups: comp.os.msdos.djgpp
Subject: fread into mapped memory
Date: Thu, 06 Mar 2003 07:30:56 +0100
Organization: Web2news.com
Message-ID: <17824N256@web2news.com>
MIME-Version: 1.0
NNTP-Posting-Host: 198.81.26.238
X-Complaints-To: abuse AT web2news DOT net
Lines: 14
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

OK, a while ago, I was making SVGA routines using
__djgpp_nearptr_enable() for linear frame buffers.  But now I've
decided, for compatibility with Windows 2000 and XP I'll remake them and
map the linear frame buffer with __dpmi_physical_address_mapping and
__dpmi_allocate_ldt_descriptors.
One thing though.  For a fast BMP routine, I'd copy data directly from
the file to the screen.  But I can't do that if I map the memory right? 
I mean, I know I could probably do something, like make a buffer, copy
the picture to that, and then copy data from the buffer to the screen,
but is there a way I could fread or in any other way copy data from a
file to a mapped memory location?  Thanks.
-- 
Direct access to this group with http://web2news.com
http://web2news.com/?comp.os.msdos.djgpp

- Raw text -


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