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
This commit is contained in:
Derek Foreman 2015-07-30 11:44:57 -04:00 committed by Chris Michael
parent d2f5d240a4
commit 525269dc98
1 changed files with 1 additions and 1 deletions

View File

@ -37,7 +37,7 @@ _evas_outbuf_setup(int w, int h, int rot, Outbuf_Depth depth, Eina_Bool alpha, s
n = atoi(num);
if (n <= 0) n = 1;
if (n > 4) n = 4;
if (n > MAX_BUFFERS) n = MAX_BUFFERS;
ob->num_buff = n;
}