[client] renderers: treat -1 as full damage and 0 as no overlay

This makes everything consistent.
This commit is contained in:
Quantum authored and Geoffrey McRae committed 2021-07-22 18:57:34 +10:00
1 parent 4c60409aaf
commit 947eac52f6
4 files changed
+16 -18

No files matched your search

+1 -1
View File
@@ -662,7 +662,7 @@ int app_renderOverlay(struct Rect * rects, int maxRects)
const int written =
overlay->ops->render(overlay->udata, false, rects, maxRects);
if (!totalDamage)
if (totalDamage)
continue;
if (written == -1)