delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/05/25/20:19:04

From: mert0407 AT sable DOT ox DOT ac DOT uk (George Foot)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Allegro: Minor nuiscances in 2.2
Date: 25 May 1997 23:09:17 GMT
Organization: Oxford University, England
Distribution: world
Message-ID: <5magqt$pne@news.ox.ac.uk>
References: <5ma34v$bho AT freenet-news DOT carleton DOT ca> <FvHyfaAjTKizEwm$@talula.demon.co.uk>
NNTP-Posting-Host: sable.ox.ac.uk
Lines: 18
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Shawn Hargreaves (Shawn AT talula DOT demon DOT co DOT uk) wrote:

: I'm sorry, but I don't think that really qualifies as a bug! In fact,
: almost any graphics function will crash if you call it while in text
: mode. The vsync() routine is vectored through a pointer in the
: GFX_DRIVER structure, but when gfx_driver is NULL this will end up

Would it not be workable to create a new GFX_DRIVER structure for text
mode, with all the members pointing to a dummy function which does
nothing? This wouldn't make the code any less efficient in graphics mode,
and would just require gfx_driver to be initialised to point to it at the
start and on switching to text mode.

-- 
George Foot <mert0407 AT sable DOT ox DOT ac DOT uk>
Merton College, Oxford

What's the wizard's password for? (dunnet)

- Raw text -


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