forked from enlightenment/efl
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:
parent
d2f5d240a4
commit
525269dc98
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue