Mercurial > hg > dmlib
changeset 433:ba6ec5ee5929
Cleanups.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Sat, 03 Nov 2012 13:42:52 +0200 |
parents | b583a682f12d |
children | 380c226c75af |
files | lib64gfx.c |
diffstat | 1 files changed, 4 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/lib64gfx.c Sat Nov 03 13:37:09 2012 +0200 +++ b/lib64gfx.c Sat Nov 03 13:42:52 2012 +0200 @@ -91,9 +91,12 @@ switch (format) { case DM_IFMT_PALETTE : return 1; + + case DM_IFMT_RGB_PLANE : case DM_IFMT_RGB : return 3; + case DM_IFMT_RGBA : return 4; - case DM_IFMT_RGB_PLANE : return 3; + default: return 0; } }