Mercurial > hg > dmlib
comparison lib64gfx.c @ 433:ba6ec5ee5929
Cleanups.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Sat, 03 Nov 2012 13:42:52 +0200 |
parents | 8d15443ce209 |
children | e4a3f183e463 |
comparison
equal
deleted
inserted
replaced
432:b583a682f12d | 433:ba6ec5ee5929 |
---|---|
89 int dmImageGetBytesPerPixel(int format) | 89 int dmImageGetBytesPerPixel(int format) |
90 { | 90 { |
91 switch (format) | 91 switch (format) |
92 { | 92 { |
93 case DM_IFMT_PALETTE : return 1; | 93 case DM_IFMT_PALETTE : return 1; |
94 | |
95 case DM_IFMT_RGB_PLANE : | |
94 case DM_IFMT_RGB : return 3; | 96 case DM_IFMT_RGB : return 3; |
97 | |
95 case DM_IFMT_RGBA : return 4; | 98 case DM_IFMT_RGBA : return 4; |
96 case DM_IFMT_RGB_PLANE : return 3; | 99 |
97 default: return 0; | 100 default: return 0; |
98 } | 101 } |
99 } | 102 } |
100 | 103 |
101 | 104 |