Mail Archives: djgpp/1997/05/26/13:34:04
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 -