mirror of
https://github.com/kasmtech/KasmVNC.git
synced 2026-02-06 11:27:19 +00:00
VNC-151 Refactor ScreenSet logic for modern C++
This commit is contained in:
parent
28d9c6a467
commit
e30537250f
@ -106,12 +106,12 @@ namespace rfb {
|
||||
|
||||
fb_rect.setXYWH(0, 0, fb_width, fb_height);
|
||||
|
||||
for (auto &screen: screens) {
|
||||
for (const auto &screen: screens) {
|
||||
if (screen.dimensions.is_empty())
|
||||
return false;
|
||||
if (!screen.dimensions.enclosed_by(fb_rect))
|
||||
return false;
|
||||
if (seen_ids.find(screen.id) != seen_ids.end())
|
||||
if (seen_ids.contains(screen.id))
|
||||
return false;
|
||||
seen_ids.insert(screen.id);
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user