aboutsummaryrefslogtreecommitdiff
path: root/examples/cat.h
diff options
context:
space:
mode:
authorScott Anderson <ascent12@hotmail.com>2017-07-11 00:14:55 +1200
committerScott Anderson <ascent12@hotmail.com>2017-07-11 00:14:55 +1200
commit8189c64d7f07a756abf5a6189719f02b2f1af967 (patch)
tree26a5b75622d0a750478dee5c8a5d99f5b75846b6 /examples/cat.h
parentbe064df25ee7c03543bb86d27addaa297682fba7 (diff)
Fixed that warnings that showed up with optimisations.
Diffstat (limited to 'examples/cat.h')
-rw-r--r--examples/cat.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/cat.h b/examples/cat.h
index 6db307fd..46dc50f6 100644
--- a/examples/cat.h
+++ b/examples/cat.h
@@ -5,7 +5,7 @@ struct gimp_texture {
unsigned int width;
unsigned int height;
unsigned int bytes_per_pixel; /* 2:RGB16, 3:RGB, 4:RGBA */
- unsigned char pixel_data[128 * 128 * 3 + 1];
+ unsigned char pixel_data[128 * 128 * 4 + 1];
};
extern const struct gimp_texture cat_tex;