Mail Archives: djgpp/1998/07/04/12:53:06
On 4 Jul 98 at 2:32, Andrew R. Gillett wrote:
> If I autodetect the video driver, is there any way of telling which one
> has been chosen?
gfx_driver points to the GFX_DRIVER struct for the currently selected
graphics driver.
> I want a warning screen which says something along the
> lines of:
>
> 'WARNING: You need VESA 2 graphics to play this game properly'
But that would be a lie -- how do you know they aren't using a driver
that's better than VESA 2? I think the best way to add this sort of
warning would be to measure the frame rate and point out to the user
that what they're seeing is an undesirably low frame rate, and that
perhaps they should try to use a more suitable driver.
> (my games are very slow, I am writing a C&C clone in 800x600x16bit, which
> runs at 3fps...)
Could you not make an option to run the game in a lower colour depth
with lower quality graphics, or even at a lower resolution? The
former would be a simple change -- create a reasonable palette and
set it (and the colour depth) before loading your graphics, and then
Allegro will adjust the images' colour depths as it loads them.
--
george DOT foot AT merton DOT oxford DOT ac DOT uk
- Raw text -