Re: [AD] New graphics driver -- GFX_FORCE?

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


> That's now done; to request `safe mode', a w/h of -1 is passed to the
> init function. If the framebuffer driver is present, I have #defined
> GFX_SAFE_ID to be the framebuffer driver, and GFX_SAFE_W/H to be -1. The
> only difference from passing a w/h of 0 (which means use current
> resolution) is that the color depth isn't changed.

Looks ok to me, but I can't test the fbcon driver.

Btw, you must also remove the declaration of _safe_gfx_mode_change in
aintern.h, otherwise an error occurs during the dll linking stage under
Windows.

And I must apologize: putting src/misc/gfxforce.c both in
ALLEGRO_SRC_LINUX_FILES and in ALLEGRO_SRC_X_FILES ends up with a conflict.
The safest way seems to only put it in ALLEGRO_SRC_UNIX_FILES.

--
Eric Botcazou
ebotcazou@xxxxxxxxxx



Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/