summaryrefslogtreecommitdiffstats
path: root/common/rfb/VNCServerST.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'common/rfb/VNCServerST.cxx')
-rw-r--r--common/rfb/VNCServerST.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/rfb/VNCServerST.cxx b/common/rfb/VNCServerST.cxx
index a3655bca..a24bb223 100644
--- a/common/rfb/VNCServerST.cxx
+++ b/common/rfb/VNCServerST.cxx
@@ -313,7 +313,7 @@ void VNCServerST::setPixelBuffer(PixelBuffer* pb_)
// Make sure that we have at least one screen
if (layout.num_screens() == 0)
- layout.add_screen(Screen(0, 0, 0, pb->width(), pb->height(), 0));
+ layout.add_screen(Screen(0, 0, 0, pb_->width(), pb_->height(), 0));
setPixelBuffer(pb_, layout);
}