# HG changeset patch # User Matti Hamalainen # Date 1351942972 -7200 # Node ID ba6ec5ee59299370da0004797b5f72923e5c27a3 # Parent b583a682f12d099607c8a53be9737d4e7e94cc37 Cleanups. diff -r b583a682f12d -r ba6ec5ee5929 lib64gfx.c --- 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; } }