Mercurial > hg > dmlib
diff lib64gfx.c @ 433:ba6ec5ee5929
Cleanups.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Sat, 03 Nov 2012 13:42:52 +0200 |
parents | 8d15443ce209 |
children | e4a3f183e463 |
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; } }