delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/05/26/13:34:04

From: Shawn Hargreaves <Shawn AT talula DOT demon DOT co DOT uk>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Allegro: Minor nuiscances in 2.2
Date: Mon, 26 May 1997 11:20:36 +0100
Organization: None
Distribution: world
Message-ID: <dDC0ELA0PWizEwn9@talula.demon.co.uk>
References: <5ma34v$bho AT freenet-news DOT carleton DOT ca>
<FvHyfaAjTKizEwm$@talula.demon.co.uk> <5magqt$pne AT news DOT ox DOT ac DOT uk>
NNTP-Posting-Host: talula.demon.co.uk
MIME-Version: 1.0
Lines: 20
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

George Foot writes:
>: 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? 

A very good point. But the majority of the graphics functions go through
the 'screen' bitmap rather than directly to the GFX_DRIVER, and setting
up a dummy screen would break any code that assumes (screen == NULL)
means that it is in text mode (several different parts of Allegro check
this, and it's likely that other people will have done the same thing).
I'm not sure it is worth it, given that calling these routines from text
mode doesn't make any logical sense in the first place...


--
Shawn Hargreaves - shawn AT talula DOT demon DOT co DOT uk - http://www.talula.demon.co.uk/
Beauty is a French phonetic corruption of a short cloth neck ornament.

- Raw text -


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