1
This commit is contained in:
parent
078fdc1539
commit
920656e181
1 changed files with 1 additions and 3 deletions
4
server.c
4
server.c
|
@ -470,7 +470,7 @@ int main(int argc, const char **argv)
|
||||||
server->kbdAddEvent = rfb_key_hook;
|
server->kbdAddEvent = rfb_key_hook;
|
||||||
server->ptrAddEvent = rfb_ptr_hook;
|
server->ptrAddEvent = rfb_ptr_hook;
|
||||||
rfbInitServer(server);
|
rfbInitServer(server);
|
||||||
long usec;
|
rfbRunEventLoop(server,-1,TRUE);
|
||||||
while (rfbIsActive(server)) {
|
while (rfbIsActive(server)) {
|
||||||
if (server->clientHead && TimeToTakePicture()) {
|
if (server->clientHead && TimeToTakePicture()) {
|
||||||
vblank_func(drmfd);
|
vblank_func(drmfd);
|
||||||
|
@ -479,8 +479,6 @@ int main(int argc, const char **argv)
|
||||||
convert_func(buf2, fb->width, fb->height, buf);
|
convert_func(buf2, fb->width, fb->height, buf);
|
||||||
rfbMarkRectAsModified(server, 0, 0, fb->width, fb->height);
|
rfbMarkRectAsModified(server, 0, 0, fb->width, fb->height);
|
||||||
}
|
}
|
||||||
usec = server->deferUpdateTime*1000;
|
|
||||||
rfbProcessEvents(server,usec);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (drm_ver != NULL) drmFreeVersion(drm_ver);
|
if (drm_ver != NULL) drmFreeVersion(drm_ver);
|
||||||
|
|
Loading…
Reference in a new issue