Re: [AD] Documentation update |
[ Thread Index |
Date Index
| More lists.liballeg.org/allegro-developers Archives
]
- To: alleg-developers@xxxxxxxxxx
- Subject: Re: [AD] Documentation update
- From: <spoofer255@xxxxxxxxxx>
- Date: Tue, 26 Apr 2005 21:06:35 +0200
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=a0Ks/Gi2WC3xUjxXVT50sXmQ3eGVd8HKvKRl3QvR/XZ7LdEPbiFgKFxv8ofKgphgPKjZgig4gjJamOmunD0r96XK2F6osn/onDpvkcFeBxzFOrdaebyQBcm72rMOdPpd4D3+WDBBWBHrxr+n0aUEpb0xQBsfbxhHGgOvUe9XAC0=
> On 2005-03-22, Evert Glebbeek <eglebbk@xxxxxxxxxx> wrote:
> > > if (bitmap_color_depth(screen) == 8)
> >
> > shouldn't that be
> > if (get_color_depth() == 8) ?
> >
> > This change could/should probably be made in other areas of
> > the docs and some example programmes as well. I'd pretty much
> > forgot about get_color_depth() myself until someone reminded me
> > of its existance.
I don't think so. get_color_depth() will return current selected color
depth. But this one doesn't have to be screen color depth, see my
example:
set_color_depth(32);
set_gfx_mode(GFX_SAFE, 320, 240, 0, 0);
allegro_message("%d - %d", get_color_depth(), bitmap_color_depth(screen));
set_color_depth(16);
allegro_message("%d - %d", get_color_depth(), bitmap_color_depth(screen));