Re: [AD] _al_current_display

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


On Wed, Aug 13, 2008 at 11:46 PM, Peter Wang <novalazy@xxxxxxxxxx> wrote:
> I suggest defining an inline function and making the macro call
> that.
>
We have al_get_display_width already but it doesn't do the gfx_driver
part. So, something like
#define SCREEN_W     (gfx_driver ? gfx_driver->w : al_get_display_width())
?

Pete




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