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:
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user