summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--unix/xserver/hw/vnc/XserverDesktop.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/unix/xserver/hw/vnc/XserverDesktop.cc b/unix/xserver/hw/vnc/XserverDesktop.cc
index 99fca44d..7e068b17 100644
--- a/unix/xserver/hw/vnc/XserverDesktop.cc
+++ b/unix/xserver/hw/vnc/XserverDesktop.cc
@@ -946,7 +946,7 @@ unsigned int XserverDesktop::setScreenLayout(int fb_width, int fb_height,
else {
mode = findRandRMode(output, iter->dimensions.width(),
iter->dimensions.height());
- if (!ret) {
+ if (mode == NULL) {
vlog.error("Failed to find a suitable mode for %dx%d for output '%s'",
iter->dimensions.width(), iter->dimensions.height(),
output->name);
@@ -1027,7 +1027,7 @@ unsigned int XserverDesktop::setScreenLayout(int fb_width, int fb_height,
mode = findRandRMode(output, iter->dimensions.width(),
iter->dimensions.height());
- if (!ret) {
+ if (mode == NULL) {
vlog.error("Failed to find a suitable mode for %dx%d for output '%s'",
iter->dimensions.width(), iter->dimensions.height(),
output->name);