[client] egl: fix parentheses in IDX_AGO definition

The old definition could break if complex expressions were passed in
as arguments.
This commit is contained in:
Quantum 2021-10-14 23:57:17 -04:00 committed by Geoffrey McRae
parent 2d858da0f1
commit 8dcf7af791

View File

@ -54,7 +54,7 @@
#define MAX_BUFFER_AGE 3
#define DESKTOP_DAMAGE_COUNT 4
#define MAX_ACCUMULATED_DAMAGE ((KVMFR_MAX_DAMAGE_RECTS + MAX_OVERLAY_RECTS + 2) * MAX_BUFFER_AGE)
#define IDX_AGO(counter, i, total) ((counter) + (total) - i) % (total)
#define IDX_AGO(counter, i, total) (((counter) + (total) - (i)) % (total))
struct Options
{