@ -406,6 +406,8 @@ void RFBController::startServer(int inetdFd, bool xtestGrab)
rfbLogEnable(0);
server = rfbGetScreen(0, 0, w, h, (bpp*8), 8, bpp);
rfbSetServerVersionIdentity(server, "krfb %s", KDE::versionString());
server->paddedWidthInBytes = framebufferImage->bytes_per_line;
server->serverFormat.bitsPerPixel = framebufferImage->bits_per_pixel;