]> source.dussan.org Git - tigervnc.git/commitdiff
Fix minor typo in framebuffer initialization
authorBrian P. Hinz <bphinz@users.sf.net>
Mon, 5 Sep 2016 13:15:50 +0000 (09:15 -0400)
committerBrian P. Hinz <bphinz@users.sf.net>
Mon, 5 Sep 2016 13:15:50 +0000 (09:15 -0400)
common/rfb/CConnection.cxx

index 7e9fd3104ee4ea43b9588541efd53d4b5772d417..35be9468f2b9e42eb6fafdc578d83766de2e21c4 100644 (file)
@@ -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);
     }