1
0
mirror of https://github.com/KDE/krfb synced 2026-07-01 15:51:18 -07:00

X11 framebuffer implementation based on XDamage and XShm completed.

Still has some weirdness when updating large portions of the screen 

svn path=/trunk/KDE/kdenetwork/krfb/; revision=654248
This commit is contained in:
Alessandro Praduroux
2007-04-15 15:53:18 +00:00
parent 47c089f937
commit 6fd05b3a2a
12 changed files with 259 additions and 31 deletions

View File

@@ -23,9 +23,8 @@ QtFrameBuffer::QtFrameBuffer(WId id, QObject *parent)
{
fbImage = QPixmap::grabWindow(win).toImage();
fb = new char[fbImage.numBytes()];
QTimer *t = new QTimer(this);
t = new QTimer(this);
connect(t, SIGNAL(timeout()), SLOT(updateFrameBuffer()));
t->start(UPDATE_TIME);
}
@@ -103,3 +102,13 @@ int QtFrameBuffer::paddedWidth()
return fbImage.width() * 4;
}
void QtFrameBuffer::startMonitor()
{
t->start(UPDATE_TIME);
}
void QtFrameBuffer::stopMonitor()
{
t->stop();
}