mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-11-21 21:17:19 +00:00
[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:
parent
2d858da0f1
commit
8dcf7af791
@ -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
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user