Mail Archives: djgpp/1997/05/25/20:19:04
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 -