summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorphintuka <phintuka>2008-07-29 21:02:30 +0000
committerphintuka <phintuka>2008-07-29 21:02:30 +0000
commit6af71acbe7886a845df5f0cf3bf4a9aaee626aba (patch)
tree0a958f52c84d85ffb210cdcb1e0387ab1b4316ab
parent0837f54c5c71f513a744b5950b378403107d23e3 (diff)
downloadxineliboutput-6af71acbe7886a845df5f0cf3bf4a9aaee626aba.tar.gz
xineliboutput-6af71acbe7886a845df5f0cf3bf4a9aaee626aba.tar.bz2
Make const. Specify sizes of types.
-rw-r--r--vdrlogo_32x32.c15
1 files changed, 8 insertions, 7 deletions
diff --git a/vdrlogo_32x32.c b/vdrlogo_32x32.c
index b5abd5dc..499bcb87 100644
--- a/vdrlogo_32x32.c
+++ b/vdrlogo_32x32.c
@@ -4,18 +4,19 @@
* See the main source file 'xineliboutput.c' for copyright information and
* how to reach the author.
*
- * $Id: vdrlogo_32x32.c,v 1.2 2006-12-19 17:27:49 phintuka Exp $
+ * $Id: vdrlogo_32x32.c,v 1.3 2008-07-29 21:02:30 phintuka Exp $
*
*/
/* GIMP RGBA C-Source image dump (vdrlogo_32x32.c) */
-static const struct {
- unsigned int width;
- unsigned int height;
- /*unsigned int bytes_per_pixel; / * 3:RGB, 4:RGBA */
- unsigned char pixel_data[32 * 32 * 4 + 1];
-} vdrlogo_32x32 = {
+typedef struct {
+ const uint32_t width;
+ const uint32_t height;
+ const uint8_t pixel_data[32 * 32 * sizeof(uint32_t) + 1];
+} __attribute__((packed)) sxfe_32x32_icon_t;
+
+static const sxfe_32x32_icon_t vdrlogo_32x32 = {
32, 32, /*4,*/
"\375\375\374\377\375\375\375\377\375\375\375\377\375\375\375\377\375\375"
"\375\377\375\375\375\377\375\375\375\377\375\375\375\377\375\375\375\377"