summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDerek Foreman <derekf@osg.samsung.com>2015-07-30 11:44:57 -0400
committerChris Michael <cp.michael@samsung.com>2015-07-30 11:44:57 -0400
commit525269dc986e31ef672d4ed8e7c294eba2dffa91 (patch)
tree78436cff99eb32d569cd5dd67dde8447da3ceebe
parentd2f5d240a4802da989008c82497c40a322a7ff58 (diff)
wayland-shm: Use MAX_BUFFERS macro instead of magic 4
Reviewers: zmike, devilhorns Reviewed By: devilhorns Subscribers: cedric Differential Revision: https://phab.enlightenment.org/D2888
-rw-r--r--src/modules/evas/engines/wayland_shm/evas_outbuf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/evas/engines/wayland_shm/evas_outbuf.c b/src/modules/evas/engines/wayland_shm/evas_outbuf.c
index d78c88b9d0..6fac50ec2f 100644
--- a/src/modules/evas/engines/wayland_shm/evas_outbuf.c
+++ b/src/modules/evas/engines/wayland_shm/evas_outbuf.c
@@ -37,7 +37,7 @@ _evas_outbuf_setup(int w, int h, int rot, Outbuf_Depth depth, Eina_Bool alpha, s
37 37
38 n = atoi(num); 38 n = atoi(num);
39 if (n <= 0) n = 1; 39 if (n <= 0) n = 1;
40 if (n > 4) n = 4; 40 if (n > MAX_BUFFERS) n = MAX_BUFFERS;
41 41
42 ob->num_buff = n; 42 ob->num_buff = n;
43 } 43 }