Re: [AD] GUI screen

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


> +@@BITMAP *@gui_get_screen(void);
> +@xref gui_set_screen
> +   This function returns the current bitmap surface the GUI routines will
> +   use for drawing.

Could add, for maximum clarity: "This function will never return NULL,
even if NULL was previously passed to gui_set_screen."

> +      BITMAP *gui_bmp = gui_get_screen();
> +      
> +      rectfill(gui_bmp, d->x+1, d->y+1, d->x+d->w-3, d->y+d->h-3, d->bg);

There's 6 spaces in the empty line, should remove them before committing.

> +    ASSERT(d);
> +   
> +   gui_bmp = gui_get_screen();

Same here, and again further down..




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