|
|
a09e3e |
From 2daf4126882f82b6e392dfbae87205dbdc559c3d Mon Sep 17 00:00:00 2001
|
|
|
a09e3e |
From: Pierre Ossman <ossman@cendio.se>
|
|
|
a09e3e |
Date: Thu, 23 Dec 2021 15:58:00 +0100
|
|
|
a09e3e |
Subject: [PATCH] Fix typo in mirror monitor detection
|
|
|
a09e3e |
|
|
|
a09e3e |
Bug introduced in fb561eb but still somehow passed manual testing.
|
|
|
a09e3e |
Resulted in some stray reads off the end of the stack, which were
|
|
|
a09e3e |
hopefully harmless.
|
|
|
a09e3e |
---
|
|
|
a09e3e |
vncviewer/MonitorIndicesParameter.cxx | 8 ++++----
|
|
|
a09e3e |
1 file changed, 4 insertions(+), 4 deletions(-)
|
|
|
a09e3e |
|
|
|
a09e3e |
diff --git a/vncviewer/MonitorIndicesParameter.cxx b/vncviewer/MonitorIndicesParameter.cxx
|
|
|
a09e3e |
index 5130831cb..4ac74dd1a 100644
|
|
|
a09e3e |
--- a/vncviewer/MonitorIndicesParameter.cxx
|
|
|
a09e3e |
+++ b/vncviewer/MonitorIndicesParameter.cxx
|
|
|
a09e3e |
@@ -211,13 +211,13 @@ std::vector<MonitorIndicesParameter::Monitor> MonitorIndicesParameter::fetchMoni
|
|
|
a09e3e |
// Only keep a single entry for mirrored screens
|
|
|
a09e3e |
match = false;
|
|
|
a09e3e |
for (int j = 0; j < ((int) monitors.size()); j++) {
|
|
|
a09e3e |
- if (monitors[i].x != monitor.x)
|
|
|
a09e3e |
+ if (monitors[j].x != monitor.x)
|
|
|
a09e3e |
continue;
|
|
|
a09e3e |
- if (monitors[i].y != monitor.y)
|
|
|
a09e3e |
+ if (monitors[j].y != monitor.y)
|
|
|
a09e3e |
continue;
|
|
|
a09e3e |
- if (monitors[i].w != monitor.w)
|
|
|
a09e3e |
+ if (monitors[j].w != monitor.w)
|
|
|
a09e3e |
continue;
|
|
|
a09e3e |
- if (monitors[i].h != monitor.h)
|
|
|
a09e3e |
+ if (monitors[j].h != monitor.h)
|
|
|
a09e3e |
continue;
|
|
|
a09e3e |
|
|
|
a09e3e |
match = true;
|