aboutsummaryrefslogtreecommitdiffstats
path: root/common
diff options
context:
space:
mode:
authorBrian P. Hinz <bphinz@users.sf.net>2016-09-05 09:15:50 -0400
committerBrian P. Hinz <bphinz@users.sf.net>2016-09-05 09:15:50 -0400
commit5d663058f0f8e156574b4d2076bac54258de7c72 (patch)
treef356cc9fe6aeeaacf9d2e1e5dfc8e424e503fd4d /common
parent590d4989b9332ed0bbb695abcb33422a9c5ec11b (diff)
downloadtigervnc-5d663058f0f8e156574b4d2076bac54258de7c72.tar.gz
tigervnc-5d663058f0f8e156574b4d2076bac54258de7c72.zip
Fix minor typo in framebuffer initialization
Diffstat (limited to 'common')
-rw-r--r--common/rfb/CConnection.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/rfb/CConnection.cxx b/common/rfb/CConnection.cxx
index 7e9fd310..35be9468 100644
--- a/common/rfb/CConnection.cxx
+++ b/common/rfb/CConnection.cxx
@@ -86,7 +86,7 @@ void CConnection::setFramebuffer(ModifiablePixelBuffer* fb)
if (fb->width() > framebuffer->width()) {
rect.setXYWH(framebuffer->width(), 0,
- fb->width() - fb->width(),
+ fb->width() - framebuffer->width(),
fb->height());
fb->fillRect(rect, black);
}